예제 #1
0
 public function actionRegistration()
 {
     $model = new AuthForm('register');
     if (isset($_POST['AuthForm'])) {
         $model->attributes = $_POST['AuthForm'];
         if ($model->validate()) {
             $model->createUser();
             $this->redirect(array('Auth/Authorize'));
         }
     }
     $this->render('reg', array('model' => $model));
 }