Please tell anybody knows to set cronjob in a zendframework application.
I have a controller named CronController.php. this have to run in a date. how it will set as cronjob.
i created a new cronjob in capanel and given the path like this
/home/spotlunc/public_html/zf_reubro/spotlunch/application/controllers/CronController.php:
but i got the status message of crontab as like this
/home/spotlunc/public_html/zf_reubro/spotlunch/application/controllers/CronController.php: Unsupported scheme.
Please help me if anybody knows.
Cronjob Setting+ Zend Framework
Moderator: General Moderators
Re: Cronjob Setting+ Zend Framework
The controller expects an HTTP request, which you are not generating (it is a local file access instead). Since you can't point a cron job at a URL, only at an actual file - create a php script that includes your environment settings (bootstrap) and then run whatever logic it needs from within the framework.