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.

This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.