HTML_QuickForm/Smarty Best Practice
| From: | Ed Greenberg | Date: | Fri, 02 May 2008 06:32:07 +0000 |
| Subject: | HTML_QuickForm/Smarty Best Practice | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-28854@lists.php.net to get a copy of this message | ||
Hi Folks,
I'm using HTML_QuickForm with Smarty as the renderer.
I recently got an HTML page to be converted to a smarty template, in which each of the form tags had a class parameter, such as:
<input class="dsR37" type="text" name="firstname" value="" size="18" tabindex="1" />
I'd like to replace that input tag with:
{$form.firstname.html}
but I do not want to take responsibility for the class, the size or the tabindex. These need to remain with the designer. She already has an error in her tabindexes, and I'd like her to be able to fix it.
Is there any good thing I can do to leave responsibility for those things with the designer, other than just leave the input tag alone. For instance, can the designer somehow leave something in the template that _I_ can read and then feed back into Quickform?
Thanks,
</edg>
Ed Greenberg