public function przetargiAction() { $this->setTitle('Przetargi'); $this->setUrl('przetargi.html'); $this->setTemplate('auction/index.html'); $auctionService = new Wsm_Db_Auction(); $this->addToView('years', $auctionService->getYears()); $list = $auctionService->getCurrent(); $this->addToView('hasCurrent', !empty($list)); }