Re: QuickForm 3.1 issue??

From: Date: Tue, 22 Jul 2003 21:31:11 +0000
Subject: Re: QuickForm 3.1 issue??
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-6739@lists.php.net to get a copy of this message
<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

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