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:

Loader::model('collection_attributes');


Mine, however should be:

Loader::model('eventi','simpleevent');


Any help is appreciated.

 
frankdesign replied on at Permalink Reply
My bad, was initialising the model incorrectly. Forgot some arguments.

TIP: Check your Firebug's Console window.