Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Call a action every Monday


How can I do to call an action from my Controller every Monday with Phalcon ?

There is a solution to do that ?


Hey, if i understnad you correctly you can create a cronjob script which executes a curl to your action.

Info on curl:

edited Nov '15

Perfect ! Thanks I'll try that :)

Edit : I can't accept your answer :O I don't know why.

edited Dec '15

You cannot do it without something calling your action via url. And that's what is cron job made for. You put a cron job (crontab), and make it execute your action via curl every monday.

Note: you need Linux for this, either on your server or elsewhere as long as external system can access your URL. P.S. and there is another solution, basically to have your PHP CLI program daemonized, so it will run in an endless loop and do the cron tasks for you.