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:
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?
As you've followed best design practice and coded all your business logic into your models, all you need is a new controller that can process commandline input and a simple view that just outputs the results to STDOUT.
You did put all your business logic in your models, right? Cos if there's a lot of it in the controllers then you're in trouble ;)