Loading a controller from a package in a job
Permalink
I would like to automate a method from a dashboard controller from my own package by a job. I have set up a job file
with the necessary run function in which I do try to load a dashboard controller of a single page:
wlm_events is my package name and add is the name of the single page resp. the controller for this page. However, the controller seems not to get loaded, since the job always stops in the line where I do try to get a new Object of the controller class. Any help is much appreciated.
get_events_from_facebook.php
with the necessary run function in which I do try to load a dashboard controller of a single page:
Loader::controller('controllers/dashboard/wlm_events/add', 'wlm_events'); $controller = new DashboardWlmEventsAddController();
wlm_events is my package name and add is the name of the single page resp. the controller for this page. However, the controller seems not to get loaded, since the job always stops in the line where I do try to get a new Object of the controller class. Any help is much appreciated.
Loader::controller('/dashboard/wlm_events/add', 'wlm_events');