Re: DataGrid and multiple renderers

From: Date: Thu, 28 Sep 2006 11:36:08 +0000
Subject: Re: DataGrid and multiple renderers
References: 1 2 3 4 5 6  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-25268@lists.php.net to get a copy of this message
When I did that, the only thing that happened was that it outputted my dataset data a second time in html format. Here is what it looked like:
Can you please send me your code (or the relevant parts of it)? Either you're doing something wrong or it is a bug in Structures_DataGrid.
Reminder, Users is a DB_DataObject class created by createTables.php. $users = new Users(); $renderOptions = array( 'useXMLDecl' => FALSE, 'outerTag' => 'UserItems', 'rowTag' => 'UserItem' ); $datagid = new Structure_DataGrid( 10 ); $test = $datagrid->bind( $users ); if( PEAR::isError( $test )) { ...blah... } $datagrid->render( DATAGRID_RENDER_XML, $renderOptions ); $datagrid->render( DATAGRID_RENDER_PAGER ); echo $datagird->getOutput(); thnx, Chris

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