Guest User

Untitled

a guest
Mar 2nd, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. public function register()
  2. {
  3. $this->View->errors = array();
  4. $this->View->user = new User_Model;
  5.  
  6. if (request::method() == 'post') {
  7. $this->View->user->load_values($this->input->post());
  8. $this->View->user->password = $this->input->post('password');
  9.  
  10. if ($this->View->user->validate($this->input->post())) {
  11. $this->View->user->save();
  12. url::redirect('auth/activate');
  13. }
  14.  
  15. $this->View->errors = $errors;
  16. }
  17. }
Add Comment
Please, Sign In to add comment