/** * Display function, setting menu to active even on singular view * * @param KCommandContext $context */ public function _actionDisplay(KCommandContext $context) { KRequest::set('get.hidemainmenu', 0); return parent::_actionDisplay($context); }
/** * Display the view * * @return void */ protected function _actionDisplay(KCommandContext $context) { $view = $this->getView(); if (!$view instanceof ComNinjaViewHtml && $view instanceof KViewTemplate) { $view->getTemplate()->addFilters(array(KFactory::get('admin::com.ninja.template.filter.document'))); } return parent::_actionDisplay($context); }