Re: Quickform Renderer

From: Date: Wed, 22 Feb 2006 04:21:42 +0000
Subject: Re: Quickform Renderer
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-23081@lists.php.net to get a copy of this message
On 2/21/06, Nicolas Connault <nick@connault.com.au> wrote: > I've built a number of forms now using the PEAR Quickform package, but I > have been unable to change the rendering. The documentation doesn't include > any useful examples, they seem to all be using template engines, which I am > not allowed to use for the sites I am working on. Can anyone give me some > hints on how to change the basic look of my forms? > "not allowed to use"? I can't see why that would be, seeing as it can help a lot in a multitude of ways. Anyway, the default renderer can change the rendering just fine without template engines. Use $renderer =& HTML_QuickForm::defaultRenderer(); and then call the functions in it such as setElementTemplate(). -- Justin Patrin

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