Re: Pager - last page error
| From: | Lorenzo Alberton | Date: | Wed, 24 Sep 2008 13:59:07 +0000 |
| Subject: | Re: Pager - last page error | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-29295@lists.php.net to get a copy of this message | ||
Noel da Costa wrote:
I'm using PEAR Pager v2.4.7 Just noticed that the ->getLinks() method returns a NULL value for "last page" when the last page is the current page. E.g. You have 3 pages. When viewing page 1 or 2, the links array index 5 will have a value of 3. However, when viewing page 3 it will have a NULL value.it's returning an empty string, not NULL. If you want to override this behavior, you can create a custom driver (for instance, extending "Pager_Sliding") and redefine _printLastPage(). Best regards, -- Lorenzo Alberton http://pear.php.net/user/quipo ________________________________________________________________________ Quipo Free Internet: sicuro e veloce senza costi di attivazione e senza canone, 2 e-mail da 50 Mb, 150 Mb di spazio web e molto di più! Registrati gratis: http://www.quipo.it