/** * Renders a controller view. * * @return string */ protected function _actionRender(KCommandContext $context) { if ($context->request->getFormat() == 'html' && KRequest::type() == 'HTTP') { $this->_setPageTitle(); } return parent::_actionRender($context); }
/** * Draw the toolbar. * * @param KCommandContext $context The command context * * @return string */ protected function _actionRender(KCommandContext $context) { if ($context->result !== false) { $view = $this->getController()->getView(); //Set the document mimetype JFactory::getDocument()->setMimeEncoding($view->mimetype); //Disabled the application menubar if (!KInflector::isPlural($view->getName()) && !KRequest::has('get.hidemainmenu')) { KRequest::set('get.hidemainmenu', 1); } } return parent::_actionRender($context); }