Example #1
0
 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);
 }
Example #2
0
 public function renderDefault($limit = 10, $offset = 0)
 {
     $this->template->lobs = $this->rss->getLobs($limit, $offset);
     $this->template->next_offset = $offset + $limit;
     $this->template->limit = $limit;
     $this->payload->append = 'snippet--lobs';
     $this->redrawControl("dalsi");
     $this->redrawControl("lobs");
 }
 public function actionLob()
 {
     $this->rss->loadLob();
     $this->terminate();
 }