Re: QuickForm::setDefaults
| From: | Bertrand Mansion | Date: | Thu, 06 Mar 2003 16:07:00 +0000 |
| Subject: | Re: QuickForm::setDefaults | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-4066@lists.php.net to get a copy of this message | ||
<lists@kriesing.de> wrote :
> why do i *have to* call setDefaults() before creating/adding the element?
> would it not be possible to setDefaults() afterwards? or am i
> missunderstanding something?
Wolfram, I have added this possibility but I still recommend to use
setDefaults before building the form. The idea is to deal with the data
before the layout, it looks more MVC compliant to me.
If you could test it and report any problems you have that would be great.
TIA,
Bertrand Mansion
Mamasam