public function actionIndex()
 {
     $searchModel = new AuthItemSearch(['type' => Item::TYPE_PERMISSION]);
     $dataProvider = $searchModel->search(Yii::$app->request->getQueryParams());
     return $this->render('index', ['dataProvider' => $dataProvider, 'searchModel' => $searchModel]);
 }
Пример #2
0
 public function actionIndex()
 {
     $model = new AuthItemSearch(['type' => Item::TYPE_ROLE]);
     $dataProvider = $model->search(Yii::$app->request->get());
     return $this->render('index', ['dataProvider' => $dataProvider, 'model' => $model]);
 }
Пример #3
0
 public function actionIndex()
 {
     $model = new AuthItemSearch();
     $dataProvider = $model->search(Yii::$app->request->get());
     return $this->render('index', ['model' => $model, 'dataProvider' => $dataProvider]);
 }