Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class AdminController extends Zend_Controller_Action
- {
- public function init()
- {
- /* Initialize action controller here */
- }
- public function indexAction()
- {
- $form = new Application_Form_Login();
- $this->view->form = $form;
- $auth = new Application_Model_Auth();
- $request = $this->getRequest();
- if($auth->checkRequest($request, $form)) {
- $this->_helper->redirector('index', 'index');
- }
- }
- public function logoutAction()
- {
- Zend_Auth::getInstance()->clearIdentity();
- $this->_helper->redirector('index');
- }
- }
Add Comment
Please, Sign In to add comment