/** * Lists all Cms models. * @return mixed */ public function actionIndex() { $searchModel = new CmsSearch(); $dataProvider = $searchModel->search(Yii::$app->request->queryParams); $pages = Page::find()->all(); $cmspositions = Cmsposition::find()->all(); return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider, 'pages' => $pages, 'cmspositions' => $cmspositions]); }
/** * Lists all CMS models. * @return mixed */ public function actionIndex() { $searchModel = new CmsSearch(); $dataProvider = $searchModel->search(Yii::$app->request->getQueryParams()); return $this->render('index', ['dataProvider' => $dataProvider, 'searchModel' => $searchModel]); }