/** * 跳转到其他动作控制器,并修改请求中的MVC相关参数。 * * @param string $action * @param string $controller * @param string $module * @param array $params * @return void */ public function _goto($action, $controller = null, $module = null, array $params = null) { $this->_setParam($this->_request->getActionKey(), $action); if (null !== $controller) { $this->_setParam($this->_request->getControllerKey(), $controller); } if (null !== $module) { $this->_setParam($this->_request->getModuleKey(), $module); } parent::_forward($action, $controller, $module, $params); }
/** * _forward * * @param mixed $action Action name * @param string $controller Controller name * @param string $module Module name * @param mixed $params Parameters * @access private * @return void */ protected function _go($action, $controller = null, $module = null, $params = null) { if ($this->_request->isXmlHttpRequest()) { return; } parent::_forward($action, $controller, $module, $params); return; }