protected function _initDispatcher() { $this->bootstrap('frontController'); $front = $this->frontController; $front->setParam('useDefaultControllerAlways', false); $dispatcher = new TRF_Controller_Dispatcher(); $dispatcher->setControllerDirectory(array('default' => APPLICATION_PATH . '/modules/default/controllers', 'admin' => APPLICATION_PATH . '/modules/admin/controllers')); $front->setDispatcher($dispatcher); return $dispatcher; }
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); }