/** * Push the toolbar into the view * . * * @param KEvent A event object */ public function onAfterControllerGet(KEvent $event) { $this->addParameterCommand(); //Render the menubar $document = JFactory::getDocument(); $config = array('menubar' => $this); $menubar = $event->getPublisher()->getView()->getTemplate()->getHelper('menubar')->render($config); $document->setBuffer($menubar, 'modules', 'submenu'); }
/** * Push the toolbar into the view * . * * @param KEvent A event object */ public function onBeforeControllerGet(KEvent $event) { KService::set('com:controller.toolbar', $this); $event->getPublisher()->getView()->toolbar = $this; }
/** * Push the toolbar into the view * . * @param KEvent A event object */ public function onBeforeControllerGet(KEvent $event) { $event->getPublisher()->getView()->toolbar = $this; }