Esempio n. 1
0
 public function renderList($catid = NULL)
 {
     $this->template->raceid = $this->raceid;
     $this->template->race = $this->race->getRaceInfo();
     $this->template->categories = $this->category->listAll()->order('name');
     $this->template->addFilter('startorder', function ($s) {
         return self::$start_order[$s];
     });
     if ($catid) {
         $form = $this['categoryForm'];
         $category = $this->category->load($catid);
         if (!$category) {
             $this->error('Záznam nenalezen!');
         }
         $form->setDefaults($category);
     }
 }