/**
  * Lists all CmsModel models.
  * @return mixed
  */
 public function actionIndex()
 {
     $searchModel = new CmsModelSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     return $this->render($this->viewPath . 'index', ['dataProvider' => $dataProvider, 'searchModel' => $searchModel]);
 }
示例#2
0
 /**
  * Lists all CmsModel models.
  * @return mixed
  */
 public function actionIndex()
 {
     $searchModel = new CmsModelSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     return $this->render('@vendor/yii2mod/yii2-cms/views/cms/index', ['dataProvider' => $dataProvider, 'searchModel' => $searchModel]);
 }