O'Reilly logo

Yii Rapid Application Development Hotshot by James R. Hamilton III, Lauren J. O'Meara

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating and Registering a Job

The first job we will create will simply demonstrate how to create and call a job. It will not take parameters as input. It will not produce output. It will just run and send e-mails to the users of our system.

Prepare for Lift Off

To demonstrate this function, we have added an e-mail field to the user table. The e-mail field is roughly supported in the interface. You may want to expand on the support with validation and search features. For now, the create and update user screens will allow a user to view and edit the field.

The job that we are about to create will send an e-mail to all of your users. In order to send e-mails, you must have a mail server configured on your system.

If you do have a configured e-mail ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required