コード例 #1
0
 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]);
 }