/** * @return string */ public function actionIndex() { $dataProvider = TourRecord::find()->getDataProvider(); $viewData = ['dataProvider' => $dataProvider, 'totalCount' => $dataProvider->totalCount]; return $this->render('index', $viewData); }