/**
  * @param string $route
  * @return string
  */
 public function actionSelect($route = 'grom/page/default/view')
 {
     $searchModel = new PageSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->getQueryParams());
     Yii::$app->grom->layout = 'modal';
     return $this->render('select', ['dataProvider' => $dataProvider, 'searchModel' => $searchModel, 'route' => $route]);
 }
 public function actionSelectPage()
 {
     $searchModel = new PageSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->getQueryParams());
     $this->layout = 'modal';
     return $this->render('select-page', ['dataProvider' => $dataProvider, 'searchModel' => $searchModel]);
 }