Structures_DataGrid broken with DB_Object
| From: | Ken Restivo | Date: | Sun, 21 Nov 2004 04:05:27 +0000 |
| Subject: | Structures_DataGrid broken with DB_Object | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-15733@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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?
- -ken
- --
- ---------------
The world's most affordable web hosting.
http://www.nearlyfreespeech.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
iD8DBQFBoBQHe8HF+6xeOIcRAuY5AJ4lIeWtHuKrTjkd4Ne5fL3qM8tF0QCg9NWi
dsUGOHKvfTpydcsq9tHxtKE=
=YIMD
-----END PGP SIGNATURE-----