Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function loginAction() {
- $form = new Application_Form_FormLogin();
- $this->view->form = $form;
- if ($this->getRequest()->isPost()) {
- $formData = $this->getRequest()->getPost();
- if ($form->isValid($formData)) {
- $userName = $form->getValue('userName');
- $password = $form->getValue('password');
- $this->redirect('visiteur/index');
- } else {
- $form->populate($formData);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement