Exemple #1
0
 /**
  * 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]);
 }
Exemple #2
0
 /**
  * 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]);
 }