Re: fieldsToRender add/override options to create method in FormBuilder
| From: | Dan Rossi | Date: | Thu, 09 Jun 2005 15:22:13 +0000 |
| Subject: | Re: fieldsToRender add/override options to create method in FormBuilder | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-19577@lists.php.net to get a copy of this message | ||
On 10/06/2005, at 12:54 AM, Justin Patrin wrote:
It sounds like you'resaying you submitted a feature request about this but I don't see anything new about this. As I've said before, this is one of the problems with FormBuilder being configured in so many ways. One overrides others and it's hard sometimes to override things. Personally I *never* use the options array in the create method or set options on the FB object directly. If I need to override settings in the DO I set then in the DO instance. $do =& DB_DataObject::factory('table'); $do->fb_fieldsToRender = array('field1', 'field2'); $do->fb_fieldLabels['field1'] = 'Special label for field1'; $fb =& DB_DataObject_FormBuilder::create($do); -- Justin PatrinRight ?? I suppose setup all the variables like var $fb_fieldsToRender etc , and then set it all up like that ? Hmm back to the drawing board, your examples never had this trick :)