public function usersRegistrationAction()
 {
     $userRegModelObj = new \models\UsersRegistrationModel();
     $warningMessage = $userRegModelObj->addUser($_POST);
     $out = \views\UsersRegistrationView::getRegForm() . "<p>{$warningMessage}</p>";
     $this->printIndexPage($out);
 }
 /**
  * Performs registration user.
  * @access public
  * @return void
  */
 public function usersRegistrationAction()
 {
     $script = ScriptLoader::loadScript(array('/students2.0/core/js/Validation.js', '/students2.0/js/RegistrationValidation.js'));
     $userRegModelObj = new UsersRegistrationModel();
     $warningMessage = $userRegModelObj->addUser($this->post_data);
     $out = UsersRegistrationView::getRegForm() . "<p id=\"warningMessage\">{$warningMessage}</p>" . $script;
     $this->printIndexPage($out);
 }