Pager - last page error

From: Date: Wed, 24 Sep 2008 12:16:30 +0000
Subject: Pager - last page error
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-29294@lists.php.net to get a copy of this message
Hi, 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. Is this intentional or a bug? Can I alter this behaviour? Thanks, Noel On 7 Jun 2008, at 21:51, Mark Wiesemann wrote:
Hi Bernhard, Bernhard Harb wrote:
This is my sample code: $datagrid =& new Structures_DataGrid(5);
[...]
$usergrid = $datagrid->bind('SELECT iduser, username, email FROM user', $params, 'MDB2'); $datagrid->setRequestPrefix('usrtbl_');
RTFM please. ;-) http://pear.php.net/manual/en/package.structures.structures-datagrid.structures-datagrid.setrequestprefix.php => "This method needs to be called before bind()." Regards, Mark --http://www.markwiesemann.eu --PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
---------------------------------------------------------- Noel da Costa Arc Contracting Limited London: +44 870 385 0074 Cape Town: +27 21 462 1292 www.arc2.co.uk noel@arc2.co.uk

« previous php.pear.general (#29294) next »