controllers/ProfileController.php
public function actionUpdate()
	{
		$model = $this->findModel();
		$model->setScenario('profile');

		if ($model->load($_POST) && $model->save()) {
			return $this->redirect(['view', 'id' => $model->id]);
		} else {
			return $this->render('update', [
				'model' => $model,
			]);
		}
	}
public function actionUpdate()
	{
		$model = $this->findModel();
		$model->setScenario('profile');

		if ($model->load($_POST) && $model->save()) {
			return $this->redirect(['view', 'id' => $model->id]);
		} else {
			return $this->render('update', [
				'model' => $model,
			]);
		}
	}
Updates the current User model.
If update is successful, the browser will be redirected to the 'view' page.

@param integer $id
@return mixed