public function actionAccount()
{
/** @var AccountForm $model */
$model = Yii::createObject(AccountForm::className());
$this->performAjaxValidation($model);
if ($model->load(Yii::$app->request->post()) && $model->save()) {
Yii::$app->session->setFlash('success', '您的用户信息修改成功');
return $this->refresh();
}
return $this->render('account', ['model' => $model]);
}