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]);
 }