public function dispatch(Zend_Controller_Request_Abstract $request, Zend_Controller_Response_Abstract $response) { if (false == self::$_isChangeDispatch) { $this->_changeDispatch($request, $response); self::$_isChangeDispatch = true; } parent::dispatch($request, $response); }
/** * Dispatch to a controller/action * * By default, if a controller is not dispatchable, dispatch() will throw * an exception. If you wish to use the default controller instead, set the * param 'useDefaultControllerAlways' via {@link setParam()}. * * @param Zend_Controller_Request_Abstract $request * @param Zend_Controller_Response_Abstract $response * @return void * @throws Zend_Controller_Dispatcher_Exception */ public function dispatch(Zend_Controller_Request_Abstract $request, Zend_Controller_Response_Abstract $response) { $this->_handleRequest($request); parent::dispatch($request, $response); }