Пример #1
0
 public function actionIndex()
 {
     //if(!Yii::$app->user->can('viewRole')) throw new ForbiddenHttpException(Yii::t('app', 'No Auth'));
     $searchModel = new AuthSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->get(), Auth::TYPE_ROLE);
     return $this->render('index', ['dataProvider' => $dataProvider, 'searchModel' => $searchModel]);
 }
Пример #2
0
 public function actionIndex()
 {
     $searchModel = new AuthSearch();
     $dataProvider = $searchModel->search(\App::$app->request->get(), Auth::TYPE_ROLE);
     return $this->render('index', ['dataProvider' => $dataProvider, 'searchModel' => $searchModel]);
 }