public function actionPos() { $model = UserProfile::getProfile(); if ($model->load(Yii::$app->request->post())) { if ($model->save()) { return $this->redirect(['/users/site/index']); } } return $this->render('viewPos', ['model' => $model]); }