Guest User

Untitled

a guest
Apr 1st, 2018
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. if($this -> request -> isPost())
  2. {
  3. $name = $this -> request -> getPost('fullname');
  4. $username = $this -> request -> getPost('email');
  5. $password = $this -> request -> getPost('password');
  6. $vpassword = $this -> request -> getPost('cpassword');
  7.  
  8. if($password != $vpassword)
  9. {
  10. $this -> flash -> error("The passwords doesn't match!!!");
  11. //return $this -> view -> pick('register'); //Show page/ no error msg
  12. /*return $this->dispatcher->forward( //show error/ no page / cyclic routing
  13. [
  14. 'controller' => 'auth',
  15. 'action' => 'register'
  16. ]
  17. );*/
  18. // Make a full HTTP redirection
  19. //return $this->response->redirect('auth/register');
  20. }
  21.  
  22. return $this -> view -> pick('register');
  23.  
  24. return $this->dispatcher->forward(
  25. [
  26. 'controller' => 'auth',
  27. 'action' => 'register'
  28. ]
  29. );
  30.  
  31. Any ideas?
Add Comment
Please, Sign In to add comment