Exemplo n.º 1
0
 /**
  * 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]);
 }
Exemplo n.º 2
0
 /**
  * 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]);
 }