/**
  * Lists all CategoryGames models.
  * @return mixed
  */
 public function actionIndex()
 {
     $dataProvider = new ActiveDataProvider(['query' => CategoryGames::find()]);
     return $this->render('index', ['dataProvider' => $dataProvider]);
 }
Exemplo n.º 2
0
 public function getAllCategories()
 {
     return CategoryGames::find()->all();
 }