Re: 2 step pager
| From: | Lorenzo Alberton | Date: | Fri, 05 May 2006 10:25:19 +0000 |
| Subject: | Re: 2 step pager | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-23955@lists.php.net to get a copy of this message | ||
Hi Lukas,
I create my pager instance somewhere in the business logic and pass it over to the template. In the template I want to generate the pager links in the format I want to use there. However in order to do this I need to call _setOptions(). Also I need to pass the pageID to getLinks() otherwise it does not generate the proper URLs.without looking at your specific problem, I shall point you to the latest Pager release: http://pear.php.net/package/Pager/download/ From the changelog: - changed _setOptions() [private] to setOptions() [public] - added build() to refresh the links and the paged data after a new call to setOptions() I think that's what you're probably looking after... If not, please describe your issue with some more details. Cheers, -- Lorenzo Alberton http://pear.php.net/user/quipo