Php – How to store your scripts for cron jobs in Zend Framework


Because ZF depends on mod rewrite for all it's URLs, it's not immediately apparent to me where I should store local scripts for use with a cron job.

Does anyone have any recommendations, or is there an "officially accepted" way?

Best Solution

I use the Modular Directory Structure in the design of my websites so that I have controllers, views, etc created for each separate module of my websites. Included within each module I have a scripts (or a cron) directory that stores all of the cron scripts for that particular module.

Personally I find that this keeps things simple when it comes to access resources from Zend Framework as well as from the actual web application.