public function init() { // If not logging in or out and not authenticated if (!($this->isPublic() || $this->isLoggedIn())) { $sess = new Zend_Session_Namespace('admin_login_target'); $req = $this->getRequest(); $sess->action = $req->getActionName(); $sess->controller = $req->getControllerName(); $sess->module = $req->getModuleName(); // Force login return $this->_helper->redirector('login', 'auth', 'admin'); } parent::init(); }
public function init() { $this->controllerType = 'frontend'; parent::init(); }