Example #1
0
 private function listPages()
 {
     $page = (int) $this->_getParam('page');
     $paginator = Webbers_Search::factory(Page::findList());
     $paginator->setCurrentPageNumber($page);
     return $paginator;
 }
Example #2
0
 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;
 }