回复: Re: [PEAR] [FormBuilder]fieldLabels ok

From: Date: Sat, 05 Nov 2005 01:03:10 +0000
Subject: 回复: Re: [PEAR] [FormBuilder]fieldLabels ok
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-21801@lists.php.net to get a copy of this message
--- Justin Patrin <papercrane@gmail.com>写道: > 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 > Created by reference is ok. Thank Brett Bieber and Justin Patrin. Sorry for bother you. ___________________________________________________________ 雅虎免费G邮箱-中国第一绝无垃圾邮件骚扰超大邮箱 http://cn.mail.yahoo.com

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