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
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.

 
A3020 replied on at Permalink Best Answer Reply
A3020
I'd say this should work:

Loader::controller('/dashboard/wlm_events/add', 'wlm_events');
johannesdold replied on at Permalink Reply
Great, that worked. Thanks a lot.