hasIdentity()) { } else { $this->_helper->redirector('login', 'auth'); } } public function indexAction() { // action body } }