public function actionIndex($id)
 {
     // $id - in Student
     /* @var $student StudentEducation */
     $student = StudentEducation::find()->where(['id_student' => $id, 'year' => YearHelper::getYear()])->one();
     if (!$student) {
         $this->redirect($this->goHome());
     }
     $provider = new ActiveDataProvider(['query' => ResultHelper::StudentResults($student->id), 'pagination' => false]);
     return $this->render('index', ['provider' => $provider, 'student' => $student]);
 }
 public function actionIndex($id)
 {
     // $id - Student
     /* @var $student StudentEducation */
     $student = StudentEducation::find()->where(['id_student' => $id, 'year' => YearHelper::getYear()])->one();
     if (!$student) {
         $this->redirect($this->goHome());
     }
     $provider = new ActiveDataProvider(['query' => ResultHelper::StudentResults($student->id), 'pagination' => ['pageSize' => 10, 'pageSizeParam' => false]]);
     Yii::$app->session->set('studentResultPage', Yii::$app->request->get('page'));
     return $this->render('student', ['provider' => $provider, 'student' => $student]);
 }