News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Adam Jensen's Blog:
Cron tasks in Zend Framework apps
January 13, 2010 @ 08:45:41

In this new post to his blog Adam Jensen looks at creating cron jobs with the help of the Zend Framework without having to load up the entire MVC architecture to get there.

So, we're going to need a new application bootstrap and entry point, one that eschews the MVC routing and dispatch process in favor of something simpler. Essentially, all we'll need is to be able to run an arbitrary collection of cron "task plugins," the list of which can be configured in plain text via any of the various Zend_Config formats (e.g., the default application.ini file).

He starts with the base functionality, a task plugin interface that allows you to set up a "framework" to run the tasks in. He also creates a simple cron service that handles the execution of the tasks (this is the main executable) and includes the code for creating the bootstrap for the Zend Framework to understand how to use it all. Then to create a new task, all you have to do is extend the CronInterface.

0 comments voice your opinion now!
zendframework task cron tutorial plugin interface


blog comments powered by Disqus

Similar Posts

DevShed: Using Directory Iterators and MySQL with Adapter Objects with PHP

Alexander Netkachev's Blog: Practical PHP events: The Java way

SitePoint PHP Blog: Coding a Lorem Ipsum Alternative

Padraic Brady's Blog: Self-Contained Reusable Zend Framework Modules With Standardised Configurators

Zend Developer Zone: Lifting the Skirt on Zend Framework 1.5: Zend_Auth and the OpenId Adapter


Community Events





Don't see your event here?
Let us know!


introduction series tool release package opinion install community voicesoftheelephpant laravel podcast language interview security version update framework composer library symfony

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework