Home > Archive > PHP Pear > June 2005 > Re: [PEAR] DB_DataObject_FormBuilder and custom fieldLabels
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: [PEAR] DB_DataObject_FormBuilder and custom fieldLabels
|
|
| Justin Patrin 2005-06-06, 8:56 pm |
| 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 we=
ll?
> 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:
>=20
> $formBuilder =3D DB_DataObject_FormBuilder::create($do);
>=20
> needs to be:
>=20
> $formBuilder =3D& DB_DataObject_FormBuilder::create($do);
>=20
> Otherwise $formBuilder->fieldLabels =3D .... 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
>=20
> Or maybe I'm messing something up somehow.
>=20
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.
--=20
Justin Patrin
| |
| Ken Restivo 2005-06-08, 3:59 am |
| -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Mon, Jun 06, 2005 at 02:55:46PM -0700, Justin Patrin wrote:
> On 6/6/05, Brett Bieber <brett.bieber@gmail.com> wrote:
>
> 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.
- -ken
- --
- ---------------
The world's most affordable web hosting.
http://www.nearlyfreespeech.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFCpoFXe8HF+6xeOIcRArekAKDgosjL4Td/hRzfImZQ6M4nwiyIQACbBKG6
M7a7klK2TchsJkKGfqEesak=
=s0qP
-----END PGP SIGNATURE-----
|
|
|
|
|