Пример #1
0
 public function renderDefault($bs = false)
 {
     $platforms = $this->platforms->findAll();
     /** @var PlatformView $platformComponent */
     $platformComponent = $this['platform'];
     $platformComponent->setListBootstrapTemplate($bs);
     $this->template->title = "Výpis her podle platforem";
     $this->template->platforms = $platforms;
     $this->template->unassignedGames = $unassigned = $this->games->findBy(['platform' => null]);
     $additional_nav_links = [];
     if ($unassigned) {
         $additional_nav_links[] = $this->createLink('this#unassigned', 'Hry bez platformy');
     }
     $this->template->additional_nav_links = $additional_nav_links;
 }
Пример #2
0
 public function actionDefault()
 {
     $platforms = $this->platforms->findAll();
     $this->template->platforms = $platforms;
 }