public function actionSlushateli($kurs) { $kurs = Hashids::decodeOne($kurs); if (!$kurs) { throw new NotFoundHttpException(); } $model = Kurs::findOne($kurs); if (!$model) { throw new NotFoundHttpException(); } //todo with() $query = FizLico::findSlushateliKursa($kurs)->andWhere(['kurs_fiz_lica.status' => StatusKursaFizLica::ZAPISAN])->orderBy('id'); $data = new ActiveDataProvider(['query' => $query, 'key' => 'hashids', 'pagination' => false, 'sort' => false]); return $this->render('slushateli', compact('data', 'model')); }