Example #1
0
 /**
  *
  */
 private function sendRegistration()
 {
     $this->_users = new Users();
     if (!$this->validateForm()) {
         $this->renderErrors();
     } else {
         if ($this->_users->add($_POST)) {
             $view = new Registration();
             $view->assign('success', true);
             $view->render();
         }
     }
 }