Re: DB_DataObject_FormBuilder and custom fieldLabels

From: Date: Wed, 08 Jun 2005 20:40:51 +0000
Subject: Re: DB_DataObject_FormBuilder and custom fieldLabels
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-19550@lists.php.net to get a copy of this message
On 6/7/05, Ken Restivo <ken@restivo.org> wrote: > On Mon, Jun 06, 2005 at 02:55:46PM -0700, Justin Patrin wrote: > > On 6/6/05, Brett Bieber <brett.bieber@gmail.com> wrote: > > > wrt DB_DataObject_FormBuilder 0.17.0 and 0.17.1 and perhaps earlier as well? > > > Just an informative note/question: > > > Is it correct that 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. > > > Perhaps a bug...? If not, maybe the docs need to be changed? > > > In particular, this page > > > http://opensource.21st.de/19.html > > > > > > Or maybe I'm messing something up somehow. > > > > > > > Ah yes, I know what this is. Yes you need to get it by ref or certain > > options (options used by the HTML_QuickForm driver) won't be found. > > I've updated the docs. Thanks for the heads up. > > > > Indeed, this solved the problem I was having with FB stuff just > plain not working. The bug seems to have been introduced between > 0.13 and 0.17. > > Using a reference got everything working again, thanks. > I guarantee this was when I switched to the new driver implementation (when FB went back to alpha). -- Justin Patrin

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