Code Comments
Programming Forum and web based access to our favorite programming groups.In HTML_QuickForm's renderer->setElementTemplate:
Can I access id/name of field?
If I wanted my elements to look like this...
<tr>
<th><label for="yourname">Your Name:</label></th>
<td><input name="yourname" type="text" /></td>
</tr>
... then my ElementTemplate would need to use a variable that holds
the element/input name.
Right now the template seems to only let me use {label} and {element}.
Any way to get {element.name} or {element.id}?
It looks like HTML_QuickForm_Renderer_Default->renderElement is just doing:
str_replace('{element}', $element->toHtml(), $html);
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.