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 |
/** * 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'); }