/**
  * Lists all MenuType models.
  * @return mixed
  */
 public function actionIndex()
 {
     $searchModel = new MenuTypeSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
 }
 public function actionSelectMenu()
 {
     $searchModel = new MenuTypeSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->getQueryParams());
     $this->layout = 'modal';
     return $this->render('select-menu', ['dataProvider' => $dataProvider, 'searchModel' => $searchModel]);
 }