コード例 #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
ファイル: RoleController.php プロジェクト: wuwenhan/huoqiwang
 public function actionIndex()
 {
     $searchModel = new AuthSearch();
     $dataProvider = $searchModel->search(\App::$app->request->get(), Auth::TYPE_ROLE);
     return $this->render('index', ['dataProvider' => $dataProvider, 'searchModel' => $searchModel]);
 }