public function actionIndex() { $searchModel = $this->getSearchModel(); $dataProvider = $searchModel->search(\Yii::$app->request->queryParams); return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]); }