public function actionStudent($userId, $schId) { $dataProvider = new LessonsProvider(["sid" => 100, "uid" => $userId, "pagination" => false]); $school = School::getById($schId); return $this->render('index', ['dataProvider' => $dataProvider, 'models' => $dataProvider->getModels(), 'userdat' => ['userID' => $userId, 'curSchoolID' => $schId], 'schoolName' => $school->schoolName, 'itemView' => 'lesson']); }