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