public function actionIndex() { $this->render('layouts/header'); $this->render('general/index', ['general' => $this->getGeneral(), 'messages' => $this->getMessages()], true); $this->render('pokemon/index', ['pokemon' => Pokemon::getPartyPokemon(), 'owned' => $this->getGeneral()->pokedex_owned, 'seen' => $this->getGeneral()->pokedex_seen], true); $badges = Badge::getBadges(null, 'LIMIT 0, 8'); $elite_four = EliteFour::getEliteFour('is_rematch = 0'); if ($elite_four['beaten']) { $this->render('importanttrainer/index', ['importanttrainers' => \TPP\Models\ImportantTrainer::getImportantTrainers()]); } if ($badges['obtained'] >= 8) { $this->render('elitefour/index', ['elitefour' => $elite_four]); } $this->render('badge/index', ['badges' => $badges], true); $boxPokemon = Pokemon::getBoxPokemon(); $this->render('pokemon_box/index', ['pokemon' => $boxPokemon], true); $this->render('pokemon_boxes/index', ['boxes' => $this->orderBoxPokemon($boxPokemon)], true); $this->render('pokemon_daycare/index', ['pokemon' => Pokemon::getDaycarePokemon()], true); $this->render('item/index', ['items' => Item::getAllItems()], true); $this->render('pokemon_history/index', ['pokemon' => Pokemon::getHistoryPokemon()], true); $this->render('milestone/index', ['milestones' => Milestone::getMilestones()], true); $this->render('fact/index', ['facts' => Fact::getFacts()], true); $this->render('credit/index', ['credits' => Credit::getCredits()], true); $this->render('layouts/footer'); }