CakePHP 2.3 - cron dispatcher

后端 未结 1 469
感情败类
感情败类 2021-01-23 23:18

I followed instructions from this website: http://colorblindprogramming.com/cronjobs-in-cakephp-2-in-5-steps , but my cronjob does not work.

This is my /app/cron_dispatc

相关标签:
1条回答
  • 2021-01-23 23:57

    Ignore that page, it gives false advice and proposes a bad architecture. It's just wrong.

    Instead you should use a shell for that. See the page in the CakePHP book about shells.

    Your application, if properly written, should have all data processing and manipulation code inside a model. By this the code is very easy to share between a controller and a shell.

    0 讨论(0)
提交回复
热议问题