private function listPages() { $page = (int) $this->_getParam('page'); $paginator = Webbers_Search::factory(Page::findList()); $paginator->setCurrentPageNumber($page); return $paginator; }
public function indexAction() { $this->view->labels = Label::getLabelsArr(); $page = (int) $this->_getParam('page'); $paginator = Webbers_Search::factory(Aktual::findForFrontPage()); $paginator->setItemCountPerPage(5); $paginator->setCurrentPageNumber($page); $this->view->articles = $paginator; }