Beispiel #1
0
 /**
  * Dispatch the request
  *
  * @param Library\CommandContext $context	A command context object
  */
 protected function _actionDispatch(Library\CommandContext $context)
 {
     //Render the page
     if (!$context->response->isRedirect() && $context->request->getFormat() == 'html') {
         //Render the page
         $config = array('response' => $context->response);
         $layout = $context->request->query->get('tmpl', 'cmd', 'default');
         if (!$this->isPermitted('render')) {
             $layout = 'login';
         }
         $this->getObject('com:application.controller.page', $config)->layout($layout)->render();
     }
     parent::_actionDispatch($context);
 }