コード例 #1
0
ファイル: SController.php プロジェクト: paranoidxc/iwebhost
 public function actionForgot()
 {
     $model = new ForgotForm();
     if (isset($_POST['ForgotForm'])) {
         $model->attributes = $_POST['ForgotForm'];
         if ($model->validate() && $model->forgot()) {
             $this->render('forgotok', array('model' => $model));
             exit;
         }
     }
     $this->_pageTitle = '找回密码' . API::lchart();
     $this->render('forgot', array('model' => $model));
 }
コード例 #2
0
 public function actionForgot()
 {
     $model = new ForgotForm();
     if (isset($_POST['ForgotForm'])) {
         $model->attributes = $_POST['ForgotForm'];
         if ($model->validate() && $model->forgot()) {
             $this->redirect(array('admin/category/iroot'));
         }
     }
     $this->render('forgot', array('model' => $model));
 }