Re: [FormBuilder]fieldLabels can not work in 1.0.0rc2
| From: | Brett Bieber | Date: | Fri, 04 Nov 2005 14:25:37 +0000 |
| Subject: | Re: [FormBuilder]fieldLabels can not work in 1.0.0rc2 | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-21773@lists.php.net to get a copy of this message | ||
Heya,
On 11/4/05, digit Shine <digit_shine@yahoo.com.cn> wrote:
> > On 11/2/05, digit Shine <digit_shine@yahoo.com.cn>
> > wrote:
> > > Any thing all right in 0.14.0, but when update to
> > > 1.0.0rc2, fieldLabels can not work. Is it any
> > change
> > > in some old version or this one?
>
> I have tried different versions one by one, and found
> that my code work in 0.15.0, but not work in 0.16.0
> and above. 0.16.0 change a lot and back to beta.
> What can I do to change my code?
>
I remember one version upgrade a while ago that affected me as well - here's
what I recall:
If you do not create your formbuilder object by reference, custom
fieldLabels for form fields will not be applied.
So... for example:
$formBuilder = DB_DataObject_FormBuilder::create($do);
needs to be:
$formBuilder =& DB_DataObject_FormBuilder::create($do);
Otherwise $formBuilder->fieldLabels = .... will not be applied.
That's the only idea I have.
--
-Brett
http:saltybeagle.com <http://saltybeagle.com> aim:ianswerq