public function loginAction()
 {
     $sess = new Zend_Session_Namespace('login_target');
     $form = new Access_Form_Login();
     $this->view->loginAttempt = '';
     $request = $this->getRequest();
     if ($request->isPost()) {
         if ($form->isValid($request->getPost())) {
             $post = $form->getValues();
             $guard = new Awe_Access_Auth('awe_admin_interface');
             if ($guard->authenticate($post['username'], $post['password'])) {
                 $sess = new Zend_Session_Namespace('admin_login_target');
                 return $this->_helper->redirector($sess->action, $sess->controller, $sess->module);
             }
             die('plorp');
             $this->view->loginAttempt = 'invalid';
         }
     }
     $this->view->form = $form;
     $this->_helper->layout->setLayout('layout_login');
 }
 public function loginAction()
 {
     $form = new Access_Form_Login();
     $this->view->loginAttempt = '';
     $request = $this->getRequest();
     if ($request->isPost()) {
         if ($form->isValid($request->getPost())) {
             $post = $form->getValues();
             $guard = new Awe_Access_Auth('premium_user_account');
             if ($guard->authenticate($post['username'], $post['password'])) {
                 $sess = new Zend_Session_Namespace('cms_login_target');
                 return $this->_helper->redirector($sess->action, $sess->controller, $sess->module);
             }
             $this->view->loginAttempt = 'invalid';
         }
     }
     $this->view->form = $form;
     $em = \Zend_Registry::get('doctrine_entity_manager');
     $page = $em->find('\\Entities\\Core\\Cms\\Page', 1);
     $this->renderDynamicPlaceholder('left_menu', 'site/_cms_menu.phtml', array('children' => $page->children));
     $breadcrumbs = array(array('url' => '/', 'title' => 'Home'), array('url' => '/access', 'title' => 'Members Only Area'), array('url' => '/access/user', 'title' => 'My Account'), array('url' => '/access/user/login', 'title' => 'Login'));
     $this->renderDynamicPlaceholder('breadcrumbs', 'site/_breadcrumbs.phtml', array('breadcrumbs' => $breadcrumbs));
 }