Re: [FormBuilder]fieldLabels can not work in 1.0.0rc2

From: Date: Fri, 04 Nov 2005 15:22:34 +0000
Subject: Re: [FormBuilder]fieldLabels can not work in 1.0.0rc2
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-21776@lists.php.net to get a copy of this message
On 11/4/05, Brett Bieber <brett.bieber@gmail.com> wrote: > 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. > Good catch, yes this is the thing that should fix digit's problem. 0.16.0 is the release that changed the architecture, hence the BC breaks. digit: In the future, please read all release notes (especially for beta and alpha releases) and search the mailing list archives. I know that this has been addressed multiple times in the past. -- Justin Patrin

« previous php.pear.general (#21776) next »