Re: Sorting-links in Structures_Datagrid

From: Date: Thu, 14 May 2009 11:26:30 +0000
Subject: Re: Sorting-links in Structures_Datagrid
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-29854@lists.php.net to get a copy of this message
Florian van Eerd wrote:
I'm having a problem with the output of a datagrid. The datasource is an array, the renderer is HTML_Table, the URL containing the grid is "http://127.0.0.1/index.php?page=someinfo&customer=10000". The table and its content are displayed correctly, but the links in the head of the table for sorting the table wants the page-option. The links look like this: "http://127.0.0.1/index.php?customer=10000&orderBy=objekt_id&direction=ASC&page=1". Why is "page=someinfo" missing (eventhough "cutomer=1000" is displayed) and even more important, what can I do to fix this?
You can set a "request prefix" to avoid naming clashes: http://pear.php.net/manual/en/package.structures.structures-datagrid.structures-datagrid.setrequestprefix.php Regards, Mark

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