public function renderForum($key) { $channel = $this->rss->getChannelByKey($key); if (empty($channel)) { throw new Nette\Application\BadRequestException(); } $this->template->channel = $channel; $this->template->items = $this->rss->getItemsByKey($key); }