Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if($this -> request -> isPost())
- {
- $name = $this -> request -> getPost('fullname');
- $username = $this -> request -> getPost('email');
- $password = $this -> request -> getPost('password');
- $vpassword = $this -> request -> getPost('cpassword');
- if($password != $vpassword)
- {
- $this -> flash -> error("The passwords doesn't match!!!");
- //return $this -> view -> pick('register'); //Show page/ no error msg
- /*return $this->dispatcher->forward( //show error/ no page / cyclic routing
- [
- 'controller' => 'auth',
- 'action' => 'register'
- ]
- );*/
- // Make a full HTTP redirection
- //return $this->response->redirect('auth/register');
- }
- return $this -> view -> pick('register');
- return $this->dispatcher->forward(
- [
- 'controller' => 'auth',
- 'action' => 'register'
- ]
- );
- Any ideas?
Add Comment
Please, Sign In to add comment