Re: HTML_QuickForm Default Renderer...what the...?

From: Date: Fri, 11 Feb 2005 19:47:22 +0000
Subject: Re: HTML_QuickForm Default Renderer...what the...?
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-36152@lists.php.net to get a copy of this message
On Friday 11 February 2005 10:48 am, Justin Patrin wrote: > I propose this function be changed not to use a global so that things > like what I'm trying to do will work. In addition, this will make QF > work the same by default as if you specify your own renderer. > Please, don't. The QF renderer setup is obtuse and requires changes to existing code to switch renderers. e.g. $form->display(); has to be changed to: $r =& new Renderer; $form->accept($r); echo $r->toHtml(); Setting the global is (afaik) the only way to switch renderers without altering every $form->display() call. I think you probably have to do something like this in your subform to work around your problem.

Attachment: [application/pgp-signature]
« previous php.pear.dev (#36152) next »