/** * Lists all AuthRole models. * @return mixed */ public function actionIndex() { $controllers = $this->getControllers(); var_dump($controllers); $dataProvider = new ActiveDataProvider(['query' => AuthRole::find()]); return $this->render('index', ['dataProvider' => $dataProvider]); }
/** * Lists all AuthRole models. * @return mixed */ public function actionIndex() { $dataProvider = new ActiveDataProvider(['query' => AuthRole::find()->with('authCategory')->orderBy(['cat_id' => SORT_ASC])]); return $this->render('index', ['dataProvider' => $dataProvider]); }