Re: DB_Table and HTML_Quickform

From: Date: Tue, 24 Oct 2006 19:56:41 +0000
Subject: Re: DB_Table and HTML_Quickform
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-25612@lists.php.net to get a copy of this message
Matthew Vickery wrote: > I have tried adding the heading to the database schema omitting the > 'type' or 'size keys' like such: > > // define an array for the table schema (for the database) > var $col = array( > > /* */ > // unique row ID > 'id' => array( > 'type' => 'integer', > 'require' => true > ), > > // Name heading > 'heading1' => array( > // form element definition > 'qf_type' => 'header', > 'qf_label' => 'This is a heading!', > ), This would be a possibility, but it's some kind of a hack and you can't avoid that DB_Table would add a database field called 'heading1' to the database table. See my other mail for a valid solution (sent after sent this code to the list). Regards, Mark

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