Re: QuickForm 3.1 issue??

From: Date: Wed, 23 Jul 2003 05:16:08 +0000
Subject: Re: QuickForm 3.1 issue??
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-6745@lists.php.net to get a copy of this message
Thanks for the info on setFormTemplate(). Graham At 11:31 PM 7/22/2003 +0200, Bertrand Mansion wrote:
<grahamc@53tech.com> wrote : Hi all - I've experienced some odd behavior after upgrading from QuickForm 3.0 to 3.1. With QF 3.0 the following worked fine,
       $jumpMenu->setFormTemplate('<form{attributes}>{content}</form>');
but w/ 3.1 it produced the following HTML <formArray> instead of <form name=... etc...> Changing setFormTemplate() to -- added some white space -- it seems to be better.
       $jumpMenu->setFormTemplate('<form {attributes} >{content}</form>');
I hope for you that $jumpMenu is an instance of HTML_QuickForm_Renderer because setFormTemplate() will be removed from HTML_QuickForm in the next release. At the moment, it is deprecated in HTML_QuickForm, the one in the renderer should be used instead. Apart from that, I don't know why this would have changed between 3.0 and 3.1 as the code was left untouched AFAIK. Maybe try to upgrade HTML_Common if it's not already. Bertrand Mansion Mamasam -- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Graham Clarke GrahamC@53Tech.com www.53Tech.com 603.643.9955

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