public function actionIndex()
 {
     $currentPsychologistId = Yii::$app->user->id;
     $profile = $this->findModel($currentPsychologistId);
     $directions = new Directions();
     $problems = new Problems();
     $sentDiplomaRequest = Diplomas::findOne(['psychologist_id' => $currentPsychologistId]);
     if ($profile->load(Yii::$app->request->post())) {
         if ($profile->save()) {
             return $this->render('index', ['profileModel' => $profile, 'message' => 'Профиль успешно обновлён', 'psychologistDirections' => $directions->getPsychologistDirections($currentPsychologistId), 'psychologistProblems' => $problems->getPsychologistProblems($currentPsychologistId), 'sentDiplomaRequest' => $sentDiplomaRequest]);
         }
     } else {
         //$this->logo = $imagesModel->getProfilePhoto();
         return $this->render('index', ['profileModel' => $profile, 'psychologistDirections' => $directions->getPsychologistDirections($currentPsychologistId), 'psychologistProblems' => $problems->getPsychologistProblems($currentPsychologistId), 'sentDiplomaRequest' => $sentDiplomaRequest]);
     }
 }