registerNewUser() 공개 정적인 메소드

Handles the entire registration process for DEFAULT users (not for people who register with 3rd party services, like facebook) and creates a new user in the database if everything is fine
public static registerNewUser ( ) : boolean
리턴 boolean Gives back the success status of the registration
예제 #1
0
 /**
  * Register page action
  * POST-request after form submit
  */
 public function register_action()
 {
     $registration_successful = RegistrationModel::registerNewUser();
     if ($registration_successful) {
         Redirect::to('login/index');
     } else {
         Redirect::to('register/index');
     }
 }
 public function register_employee_action()
 {
     $user_account_type = 4;
     RegistrationModel::registerNewUser($user_account_type);
     Redirect::to('employee/index');
 }