ZF is by default setup for a Http environment this means that you get:

Http Request Object
Http Response Object

So to do what you want you need to use the Cli response object, and
you may need create your own Request object.
Look at the request object abstract. The request object holds data to
determine what module controller action to call, also there is a
Simple Request object that you can use. This can all be customized via
the front controller.

I hope this helps, its a little brief :)

2008/9/25 retoreto <[EMAIL PROTECTED]>:
>
>
> José de Menezes Soares Neto wrote:
>>
>> I am using Zend Framework to develop a web system.
>> It has a function (let's call it "funcA") required to run periodically.
>> Thus, I would like to use crontab (Linux command) to run "funcA" every 15
>> m.
>>
>
> I'm doing this by just creating a simplified bootstrap file. I then access
> the actions Id like to do directly by calling methods of models.
> Eg a file "jobs.php" which loads all your needed classes (ZF, models).
> Which then for example does something like:
>  require_once 'Comment.php';
>  Comment::removeOldComments();
>
> Sincerely,
>  reto
> --
> View this message in context: 
> http://www.nabble.com/Cronjobs-with-ZF-tp19667341p19667906.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
>



-- 
----------------------------------------------------------------------
[MuTe]
----------------------------------------------------------------------

Reply via email to