public function preDispatchDisabled() { if (!Zend_Auth::getInstance()->hasIdentity()) { $r = $this->getRequest(); $current = $r->getModuleName() . '.' . $r->getControllerName() . '.' . $r->getActionName(); if (!in_array($current, $this->allowed)) { $r = new Zend_Controller_Action_Helper_Redirector(); $r->gotoRoute(array(), $this->loginRoute, true); } } parent::preDispatch(); }
public function preDispatch() { $view = $this->getView(); $controller = $this->getActionController(); if (Zend_Auth::getInstance()->hasIdentity()) { $view->isAuth = $controller->isAuth = true; $authData = Zend_Auth::getInstance()->getStorage()->read(); $view->auth = $controller->auth = $authData; } else { $view->isAuth = $controller->isAuth = false; } parent::preDispatch(); }
public function preDispatch() { parent::preDispatch(); $this->getActionController()->view->wizard = $this; $request = $this->getRequest(); if ($this->session->current !== null && $request->getPathInfo() == $this->session->current->getUrl()) { $command = $request->getParam('do'); if ($command != null) { $this->noticeCommand($command); } } }