Re: FormBuilder
| From: | Bertrand Mansion | Date: | Fri, 16 Feb 2007 13:23:37 +0000 |
| Subject: | Re: FormBuilder | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-26596@lists.php.net to get a copy of this message | ||
Le 16 févr. 07 à 13:54, Ian Warner a écrit :
Hi Seems the formbuilder docs site is down at the moment. So Is it possible to do something like the below -Not possible. QuickForm expects as string for the element name. You give an array.function preGenerateForm(&$fb) { $el = HTML_QuickForm::createElement('hidden', array('creation_date', 'revision_date'));$this->fb_preDefElements['creation_date'] = $el; $this->fb_preDefElements['revision_date'] = $el; }causes - Warning: Illegal offset type in isset or empty in D:\AWebEnvironment\PHP5.2.0\PEAR\HTML\QuickForm.php on line 610