views:

2199

answers:

3

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?

+4  A: 

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.

Noah Goodrich
+2  A: 

I had to create a script that would be run via cron (and I was not using modules) so I stuck mine in something like library/Myproject/cronscripts

Here is a pertinent article.

gaoshan88
+2  A: 

i wrote an article on zend framework crons a while ago, hope its what your looking for

solomongaby