protected function _actionForward(KCommandContext $context)
 {
     if ($this->_request->routed) {
         return $context->result;
     }
     return parent::_actionForward($context);
 }
Example #2
0
 /**
  * @param KCommandContext $context
  * @return false|mixed
  */
 protected function _actionForward(KCommandContext $context)
 {
     if ($this->getRequest()->format == 'json') {
         $context->result = $this->getController()->execute('display', $context);
         return $context->result;
     }
     parent::_actionForward($context);
 }
Example #3
0
 /**
  * Overloaded to comply with FancyUpload.
  * It doesn't let us pass AJAX headers so this is needed.
  */
 public function _actionForward(KCommandContext $context)
 {
     if (KRequest::type() == 'FLASH' || KRequest::format() == 'json') {
         $context->result = $this->getController()->execute('display', $context);
     } else {
         parent::_actionForward($context);
     }
     return $context->result;
 }