public function logoutAction() { $adminAuth = new My_Auth("admin"); $adminAuth->clearIdentity(); $this->_helper->redirector('index', 'auth'); }
public function logoutAction() { $auth = new My_Auth("user"); $result = $auth->clearIdentity(); $this->_helper->redirector('index', 'index'); $this->_helper->layout()->disableLayout(); $this->_helper->viewRenderer->setNoRender(true); }