/** * Lists all CourseComment models. * @return mixed */ public function actionIndex() { $dataProvider = new ActiveDataProvider(['query' => CourseComment::find()]); return $this->render('index', ['dataProvider' => $dataProvider]); }