Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function register()
- {
- $this->View->errors = array();
- $this->View->user = new User_Model;
- if (request::method() == 'post') {
- $this->View->user->load_values($this->input->post());
- $this->View->user->password = $this->input->post('password');
- if ($this->View->user->validate($this->input->post())) {
- $this->View->user->save();
- url::redirect('auth/activate');
- }
- $this->View->errors = $errors;
- }
- }
Add Comment
Please, Sign In to add comment