Re: DataGrid and multiple renderers

From: Date: Thu, 28 Sep 2006 12:04:18 +0000
Subject: Re: DataGrid and multiple renderers
References: 1 2 3 4 5 6 7  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-25269@lists.php.net to get a copy of this message
Chris Boget wrote:
Reminder, Users is a DB_DataObject class created by createTables.php. $users = new Users();
Okay, the DataSource shouldn't be the problem, anyway.
$datagrid->render( DATAGRID_RENDER_XML, $renderOptions ); $datagrid->render( DATAGRID_RENDER_PAGER );
Works fine here: The first row gives me the XML variant of the data, the second row gives me a paging string. ("gives" = "echoes")
echo $datagird->getOutput();
That's not needed, it's even bogus because it is responsible for the output of the HTML table (which is the default renderer). Regards, Mark

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