Re: Pager in reverse order
| From: | Lorenzo Alberton | Date: | Tue, 12 Sep 2006 07:36:20 +0000 |
| Subject: | Re: Pager in reverse order | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-25104@lists.php.net to get a copy of this message | ||
Frederic Poeydomenge wrote:
Does anybody know if it is possible to display a Pager_Sliding object in reverse order, e.g. :option A: you reverse the array of data e.g. $data = array_reverse($data); option B: you write a custom Pager_Common subclass, basically copying everything from Pager_Sliding, except for the order the links are built. -- Lorenzo Alberton http://pear.php.net/user/quipo ___________________________________________________________________ Quipo Free Internet - 2 email, 150 Mb di spazio web e molto di più. ADSL, Hardware & Software Online StoreLink 1 links to page N Link 2 links to page N - 1 ... Link N - 1 links to page 2 Link N links to page 1That is to say, a way to produce the following HTML output :<a href="/list/4"> 1 </a> <span class="current"> 2 </span> <a href="/list/2"> 3 </a> <a href="/list/1"> 4 </a>