Re: Structures_DataGrid broken with DB_Object

From: Date: Sun, 21 Nov 2004 19:47:11 +0000
Subject: Re: Structures_DataGrid broken with DB_Object
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-15742@lists.php.net to get a copy of this message
On Sat, 20 Nov 2004 20:05:27 -0800, Ken Restivo <ken@restivo.org> wrote: > I copied this example verbatim from the Structures_DataGrid documentation, changing only the > name and location of my object: > > require('Structures/DataGrid.php'); > require('objects/Users.php'); > > // Define the DataObject > $user = new Users(); > $user->whereAdd("user_id > 0"); > > // Print the DataGrid > $dg = new Structures_DataGrid(); > $dg->bind($user); > $dg->render(); > > But the only HTML that $dg->render() generates is: > > <table> > </table> > > Trying with DB_DataObject::debugLevel(5) indicates that no DB_Object functions are being called > at all by DataGrid. > > I can't imagine what I could be doing wrong here. Or is the example code wrong in the > documentation? > The example is for the forthcoming version of DataGrid. The current release doesn't support DB_DataObject yet. Try the version in CVS. -- Justin Patrin

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