Advertisement
Guest User

php

a guest
Oct 18th, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. public function loginAction() {
  2. $form = new Application_Form_FormLogin();
  3. $this->view->form = $form;
  4. if ($this->getRequest()->isPost()) {
  5. $formData = $this->getRequest()->getPost();
  6. if ($form->isValid($formData)) {
  7. $userName = $form->getValue('userName');
  8. $password = $form->getValue('password');
  9. $this->redirect('visiteur/index');
  10. } else {
  11. $form->populate($formData);
  12. }
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement