Re: Structurs_Datagrid question regarding the paging links

From: Date: Sun, 16 Jan 2005 21:53:11 +0000
Subject: Re: Structurs_Datagrid question regarding the paging links
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-16956@lists.php.net to get a copy of this message
Hi Brent, Brent Clements wrote:
How do I change the datagrid paging links to be something else other than file.php?page=#page
For now, you can only : $datagrid->renderer->setRequestPrefix('myprefix_'); Which will prepend 'myprefix_' to every GET parameters that your datagrid needs. That is : file.php?myprefix_page=2&myprefix_orderBy=somefield&myprefix_direction=ASC Instead of : file.php?page=2&orderBy=somefield&direction=ASC This is useful, for example, if you have several datagrids on a single page. If this does not suit your needs, feel free to post a feature request at : http://pear.php.net/bugs/report.php?package=Structures_DataGrid -- og

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