Exemplo n.º 1
0
 public function handlePage($stranka = '')
 {
     if (!$stranka || !is_numeric($stranka)) {
         throw new \Nette\Application\BadRequestException();
     }
     $this->paginator->setPage($stranka);
     $this->stranka = $stranka;
     $this->template->articles = $this->articleManager->getNewArticleList($this->paginator);
 }
Exemplo n.º 2
0
 public function renderArticleList()
 {
     $this->template->public = $this->articleManager->getNewArticleList($this->publicPaginator);
     $this->template->notPublic = $this->articleManager->getNotPublicArticleList($this->notPublicPaginator);
     $this->template->deleted = $this->articleManager->getDeltedArticleList($this->deletedPaginator);
 }