frontend\modules\user\controllers\SettingController::actionAccount PHP Method

actionAccount() public method

Displays a single User model.
public actionAccount ( ) : string | Response
return string | yii\web\Response
    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]);
    }