Re: Updating FormBuilder broke the dynamic QuickForm renderer

From: Date: Fri, 08 Jul 2005 02:39:55 +0000
Subject: Re: Updating FormBuilder broke the dynamic QuickForm renderer
References: 1 2 3 4  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-19904@lists.php.net to get a copy of this message
On 7/7/05, Dan Rossi <pear@electroteque.org> wrote: > > On 07/07/2005, at 3:07 AM, Dan Rossi wrote: > > Any chance getting back to me about this ? I even have done this in one > of the templates, but the form is still not showing up ! > > What exactly is the sections array ? Should it not be just the elements > array ? It looks like FB is adding the sections array. Sorry, as I said I've never used flexy. I have no idea what a sections array is or where it comes from. Perhaps it came from a QF upgrade? You may want to check the flexy renderer to see where this sections array is coming from. Also, if you can't figure it out from these, please make a print_r of your form object pre and post upgrade so that we can try to see the differences. > > >> > > > > With FormBuilder , i had to revert back to looping through a section > > > > {foreach:form.sections,sec} > > {foreach:sec.elements,elem} > > {if:elem.style} > > {elem.outputStyle():h} > > {else:} > > {if:elem.isButton()} > > {if:elem.notFrozen()} > > <tr> > > <td width="250" > > class="searchfield"></td> > > <td class="searchoption" > > width="450">{elem.html:h}</td> > > </tr> > > {end:} > > {else:} > > <tr> > > {if:elem.isType(#textarea#)} > > <td width="250" class="searchfield"> > > <b>{elem.label:h}</b><br /> > > {else:} > > <td width="250" class="searchfield"> > > <b>{elem.label:h}:</b></td> > > </td> > > {end:} > > <td class="searchoption" > > width="450"> > > {if:elem.error}<font > > color="red">{elem.error}</font><br />{end:} > > {if:elem.isType(#group#)} > > {foreach:elem.elements,gitem} > > {gitem.label:h} > > {gitem.html:h}{if:gitem.required}<font > > color="red">*</font>{end:} > > > > {if:elem.separator}{elem.separator:h}{end:} > > {end:} > > {else:} > > {elem.html:h} > > {end:} > > </td> > > </tr> > > {end:} > > {end:} > > {end:} > > {end:} > > > > > -- Justin Patrin

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