Hi,
we have a modularized website built on the MVC pattern. We would like to create cronjob scripts which execute every 1, 15, 60 minutes and which execute daily. We -need- the cronjobs (to make sure nobody starts asking if we really need them).
Actions include finishing up orders
for process every 15 minutes and accepting new user registrations
every 60 minutes.
We have folders for controllers
, models
and views
. These obviously contain the appropriate files for our website.
This is the global directory structure:
Root - /controller - /css - /js - /model - /view
/js and /css can be reached by the browser. The rest is handled by controller actions.
Now where do cronjobs fit in?
- Do I create seperate functions within an already existing controller? (my preference, so that code is located where it logically should)
- Or do I create new controllers for cronjobs?
- Or something else..?