示例#1
0
 public function actionUser()
 {
     $model = new UserForm();
     if ($model->load(Yii::$app->request->post()) && $model->update()) {
         Yii::$app->session->setFlash('success', 'Personal info changed.');
         return $this->goBack();
     }
     return $this->render('user', ['model' => $model]);
 }