Load model in Jobs run method
Permalink
Hi,
I am trying to load the EventCheck model (from SimpleEvents package) inside my a job's run method, however it doesn't seem to be working.
I notice that the jobs that come shipped with Concrete5 don't need a package argument:
Mine, however should be:
Any help is appreciated.
I am trying to load the EventCheck model (from SimpleEvents package) inside my a job's run method, however it doesn't seem to be working.
I notice that the jobs that come shipped with Concrete5 don't need a package argument:
Loader::model('collection_attributes');
Mine, however should be:
Loader::model('eventi','simpleevent');
Any help is appreciated.
TIP: Check your Firebug's Console window.