RE: [PEAR] Quickform input=reset element display bug?
| From: | Mike Carter | Date: | Tue, 20 May 2003 15:57:20 +0000 |
| Subject: | RE: [PEAR] Quickform input=reset element display bug? | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-5480@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Alexey Borzov [mailto:borz_off@cs.msu.su]
>
> Mike Carter wrote:
> > I'm not really sure what else you actually need to see this? Okay,
> > here goes...
> >
> > $form = new HTML_QuickForm('frmTest', 'post');
> > $form->addElement('submit', 'news_save', 'Save Article');
> >
> > $form->addElement('reset', 'news_undo', 'Undo Changes');
> $renderer =&
> > new HTML_QuickForm_Renderer_Array(true);
> > $form->accept($renderer);
> > $smarty->assign('formdata', $renderer->toArray());
> >
> > Using Smarty renderer, ah, could this be a problem there?
>
> Well, I'm pretty sure Array renderer *does not* add : to labels. You
> probably have :'s in your template (which you didn't show).
I'm using the standard Dynamic Smarty template which was distributed with
the current Quickform. I haven't actually touched the template code - I
just borrowed it from html/docs/renderers/template/smarty-dynamic.tpl
Could it be this template is not taking into account the possibility of some
elements not having a matching label?
Regards,
Mike C>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.480 / Virus Database: 276 - Release Date: 5/12/2003
________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________