At work we've developed our own MVC framework which provides us with as many as possible automated code-generation/handling. A few minutes ago I was talking with my collegue about how to handle cronjobs via a(ny) framework.
Basically we have cronjobs for:
- Mailing purposes
- Update procedures
- Garbage collection
What is your opinion/vision/best-practise on how to set up cronjobs? Is a cronjob just a PHP file using some controllers which use models to perform their tasks, or should a class be created for this?
In our opinion a cronjob is a procedure which needs controllers to do their work. What's your opinion?