Two questiens regarding Structures_DataGrid

From: Date: Wed, 20 Jul 2005 01:32:34 +0000
Subject: Two questiens regarding Structures_DataGrid
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-20066@lists.php.net to get a copy of this message
Hello, tryng to use DataGrid I have found some problems, by now I have two questions. - How do I specify a relationship, that is, one of thi fields being listed is an id that should be used to gather info from another table, this relationship is specified an tho tables (MySQL InnoDB) and I am using DB_DataObject, basically doing: $plan = DB_DataObject::factory('Plans'); require_once('Structures/DataGrid.php'); $plansTable =& new Structures_DataGrid(10); $plansTable->bind($plan); - The other is what is going on tha after defining this column: $plansTable->addColumn(new Structures_DataGrid_Column('Commands', null, null, array('class' => 'commands'), null, 'commands()')); which call back to: function commands($params){ return 'a'; } I get this notices Notice: Undefined variable: in /usr/lib/php/Structures/DataGrid/Column.php on line 183 [1] Thanks. -- Pupeno <pupeno@pupeno.com> (http://pupeno.com) Reading ? Science Fiction ? http://sfreaders.com.ar [1] Now that I think about it, maybe Structures_DataGrid is not ready to run on E_ALL reporting ?

Attachment: [application/pgp-signature]
« previous php.pear.general (#20066) next »