Zend Paginator - Page Links

tommi666

New Member
I have a working paginator. I combine Zend Paginator and jQuery to switch between pages. My problem is that the page links only have a range from 1 to 10 but it should be e.g. from 1 to 13. I can get to page 13 by clicking the forward button but the page link 13 is not displayed.
yVHqE.jpg
Paginator setup:\[code\]$paginator = new Zend_Paginator ( new Zend_Paginator_Adapter_DbSelect ( $programmeList ) );$paginator->setItemCountPerPage ( 12 ) ->setCurrentPageNumber ( $this->_getParam ( 'page', 1 ));\[/code\]Pass paginator to the view:\[code\]if (! $this->_request->isXmlHttpRequest ()) { $this->view->paginator = $paginator;} else { $this->view->currentPage = $paginator->getCurrentPageNumber ();}\[/code\]And this is how I print page links:\[code\]foreach ( $this->pagesInRange as $page ) { echo '<a href="http://stackoverflow.com/questions/3804239/#" id="page" page="'.$page.'">' . $page . '</a>';}\[/code\]Any ideas?
 
Back
Top