/**
  * Lists all Page models.
  * @return mixed
  */
 public function actionIndex()
 {
     $searchModel = new PageSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
 }
Exemple #2
0
 /**
  * Lists all Page models.
  * @return mixed
  */
 public function actionIndex()
 {
     $searchModel = new PageSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider, 'layouts' => Page::getLayouts(), 'templates' => Page::getTemplates(), 'active' => Page::getActiveList()]);
 }