Re: [ANNOUNCEMENT] HTML_QuickForm-3.2 (stable) Released.

From: Date: Wed, 05 Nov 2003 21:05:54 +0000
Subject: Re: [ANNOUNCEMENT] HTML_QuickForm-3.2 (stable) Released.
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-8790@lists.php.net to get a copy of this message
<gregoriandres@yahoo.com.ar> wrote : > > Hi, > > I've upgraded QF to 3.2 version, but setElementTemplate > give me a error: > > > Fatal error: Call to undefined function: setelementtemplate() in .... > > $form->setElementTemplate($template_formulario); > > there is a way to set a template ? > > Thank you That's normal. A few months ago, those methods were marked deprecated, since the arrival of Renderers. QuickForm now holds a default renderer object. You can access it with: $renderer =& $form->defaultRenderer(); Then you can change its options by using its accessors, for example: $renderer->setElementTemplate($template_formulario); That's 2 lines instead of one, but in the end, you win. Look at the documentation (renderer section) for all the options you have. Bertrand Mansion Mamasam

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