Exemplo n.º 1
0
 /**
  * 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);
 }
Exemplo n.º 2
0
 /**
  * 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);
 }