php - Zend Paginator - Page Links -


I have a working pager, I add the Zend Zenator and jQuery to switch between pages. My problem is that the page link has a limit of only 1 to 10 but this example should be 1 to 13. I can click on the button next to page 13 but page link 13 is not displayed. alt text

Pageinator setup:

  $ paginator = New Zend_Paginator (new Zend_Paginator_Adapter_DbSelect ($ programmeList)); $ Paginator- & gt; Set ITEMCountPaper (12) - & gt; Set current page number ($ this-> _getParam ('pages', 1));  

Pass the passenger near the viewer:

  if (! $ This-> _request-> isXmlHttpRequest ()) {$ this- & Gt; See - gt; Paginator = $ paginator; } And {$ this- & gt; View- & gt; Current page = $ paginator- & gt; GetCurrentPageNumber (); }  

And I print the page link like this:

(code $ $ for the foreach ($ this- & gt; Sort page as page) {Echo '& lt; A href = "#" id = "page" page = "'. $ Page.'" & Gt; '. $ Page '& lt; / A & gt; '; }

Any thoughts?

Zend_Paginator has a set page change method allowing you to specify how many pages to show in 10 The default is that, which tells why $ -> PageRank always shows only 10 pages.


Comments