public function actionUpdateProblems()
 {
     $problemsArray = Yii::$app->request->post('problems');
     $currentPsychologistId = Yii::$app->user->id;
     $psychologistProblems = new PsychologistProblems();
     if ($psychologistProblems->setNewPsychologistProblems($currentPsychologistId, $problemsArray)) {
         return $this->redirect('index');
     } else {
         throw new NotFoundHttpException('The requested page does not exist.');
     }
 }