/** * Редактирование личного кабинета пользователя * @return string|\yii\web\Response */ public function actionEdit() { $model = new SignupForm(); if ($model->load(Yii::$app->request->post())) { if ($user = $model->update()) { return $this->redirect('/user/profile'); } } return $this->render('edit', compact('model')); }