public function listAction($args = []) { $twig = $this->twigInit(); $list = ItemSet::findAll(); $template = $twig->loadTemplate('itemSetList.html.twig'); $champions = ApiManager::getAPI()->staticData()->getChampions(); $champions->sortByName(); echo $template->render(['list' => $list, 'type' => new ItemSetType(), 'mode' => new Mode(), 'map' => new Map(), 'champions' => $champions]); }