For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > June 2005 > Re: [PEAR] Using QuickForm_Controller









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] Using QuickForm_Controller
Justin Patrin

2005-06-09, 3:57 am

On 6/8/05, Ken Restivo <ken@restivo.org> wrote:
> On Wed, Jun 08, 2005 at 01:59:20PM -0700, Justin Patrin wrote:
n', blah blah) in the parent form, instead of hacking them in using ->toHTM=
L() methods.[color=darkred]
elements, much as Justin has done in his SubForm::setParentForm() method.[color=darkred]
>=20
> Really? How, exactly? I haven't seen any examples of this yet; didn't kno=

w it was possible.
>=20
>=20


Well, you could store the element in a member variable within your
element and make sure to call onQuickFormEvent on it and include it in
toHtml. You could also have your element extend the group element and
simply add your elements to the group (there's an auto-create function
you can extend, see the date element). Then you don't have to worry
about onQuickFormEvent or toHtml (unless you need special output).

--=20
Justin Patrin
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com