Hello
Can anyone help me to see what Im doing rong?
I want to call the controller "AdminLiveChatCount" wen the event "Appcontroller.structure" triggers on "body_end" in "admin" side
public function getEvents() {
return array(
array(
'event' => "Appcontroller.structure",
'callback' => array("this", "addCode")
)
);
}
public function addCode($event) {
//$params = $event->getParams();
$params['controller'] = array("AdminLiveChatCount");
$params['action'] = "body_end";
$params['portal'] = "admin";
$event->setParams($params);
}