Exemplo n.º 1
0
 public function getLoginForm()
 {
     require_once APPLICATION_PATH . '/forms/LoginForm.php';
     $form = new LoginForm();
     $form->setAction($this->view->url(array('controller' => 'login', 'action' => 'loginprocess')));
     $form->getElement('nextf')->setValue(urldecode($this->getRequest()->getParam('next')));
     return $form;
 }
Exemplo n.º 2
0
 function indexAction()
 {
     //2011-05-24 redirect to home if consumer login already
     if (isset($this->_currentAdmin)) {
         $this->_helper->redirector->gotoUrl('campaign/adminindex');
     }
     //2011-05-24 redirect to home if consumer login already
     $fc = Zend_Controller_Front::getInstance();
     $form = new LoginForm(array('action' => $fc->getBaseUrl() . '/admin/login', 'method' => 'post'));
     $form->getElement('url')->setValue($this->getRequest()->getParam('url'));
     $this->view->form = $form;
     $this->_helper->layout->setLayout("layout_admin");
 }
Exemplo n.º 3
0
 function indexAction()
 {
     $fc = Zend_Controller_Front::getInstance();
     $form = new LoginForm(array('action' => $fc->getBaseUrl() . '/client/login', 'method' => 'post'));
     $form->getElement('url')->setValue($this->getRequest()->getParam('url'));
     $this->view->form = $form;
     $this->_helper->layout->setLayout($this->getClientTemplate($this->getRequest()->getParam('theme')));
     $this->view->campaign_id = $this->getRequest()->getParam('id');
     $messageArray = $this->_flashMessenger->getMessages();
     if (isset($messageArray) && isset($messageArray[0])) {
         $this->view->message = $messageArray[0];
     }
 }