Re: Updating FormBuilder broke the dynamic QuickForm renderer
| From: | Dan Rossi | Date: | Fri, 08 Jul 2005 03:59:43 +0000 |
| Subject: | Re: Updating FormBuilder broke the dynamic QuickForm renderer | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-19911@lists.php.net to get a copy of this message | ||
On 08/07/2005, at 1:41 PM, Justin Patrin wrote:
A cursory glance at the ObjectFlexy renderer shows:addformHeader was set to true, it works now ;) require_once 'HTML/QuickForm/Renderer/Object.php'; $form = $fb->getForm(); $renderer =& new HTML_QuickForm_Renderer_Object(true); $form->accept($renderer); $this->form = $renderer->toObject();/** * Array of QuickformElementObject elements. If there areheaders in the form* this will be empty and the elements will be in the * separate sections * @var array $elements */ var $elements;/** * Array of sections contained in the document * @var array $sections */ var $sections;So if there's a header there's nothing in elements. Try setting addFormHeader to false (FB option).