public function actionIndex() { $searchModel = new DraggableEventSearch(); $models = $searchModel->searchAll(Yii::$app->request->queryParams); return $this->render('index', ['models' => $models]); }