Re: reorder the elements of a quickform
| From: | Justin Patrin | Date: | Thu, 30 Sep 2004 17:17:10 +0000 |
| Subject: | Re: reorder the elements of a quickform | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-14700@lists.php.net to get a copy of this message | ||
You can do one of two things.
1) use the useForm funciton in the formBuilder
$do = DB_DataObject::factory('table');
$formBuilder = DB_DataObject_FormBuilder::create($do);
$form = new HTML_QuickForm();
$form->addElement('text', 'name');
$formBuilder->useForm($form);
$form =& $formBuilder->getForm();
2) use the patch for QuickForm that allows you to move elements that
Bertrand refused to apply http://pear.php.net/bugs/bug.php?id=1587
On Thu, 30 Sep 2004 12:38:32 +0200, mike <laurent.ludovic@free.fr> wrote:
> Hi,
>
> I use formbuilder for generate a quickform in function off my table. Then, I
> add elements in the postgenerateform function with the addElement function.
> The problem is that the elements that I add are always at the end of my
> form. I would like that they are the first ones. When have I to do?
>
> Thank you for advance
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
> !DSPAM:415be30d270362854484446!
>
>
--
paperCrane --Justin Patrin--