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); }
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); }