Re: Structures_DataGrid and DB_DataObject

From: Date: Mon, 15 Nov 2004 19:25:43 +0000
Subject: Re: Structures_DataGrid and DB_DataObject
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-15536@lists.php.net to get a copy of this message
On Mon, 15 Nov 2004 14:05:50 -0400, Michiel van der Blonk <michiel@caribmedia.com> wrote: > Hi > > I am trying to get the DataGrid and DataObject to work together. > However, there is no data after performing the code. The datagrid > doesn't even have the table columns. Any thoughts? > > According to the manual this should already work: > > $person =& new CM_PERSON(); > $dg = new Structures_DataGrid(); > $dg->bind($person); > $dg->render(); > > BTW: CM_Person is a subclass of DB_DataObject > BTW2: When I use the datagrid with an array I do get results. Also my > DB_DataObject classes work fine. > Are you sure DataGrid supports this? I know that people were working on it, but I don't think those changes have been released. Have you tried the code in CVS? -- Justin Patrin

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