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]); }
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]); }
public function actionIndex() { $model = new AuthItemSearch(); $dataProvider = $model->search(Yii::$app->request->get()); return $this->render('index', ['model' => $model, 'dataProvider' => $dataProvider]); }