Re: [SMARTY] if-else-routine bundled
Peggy Schatz wrote:
> ************in the template****************
>
> <td>{checkfield data=$templateVar value=$templateVar_value
> selected=$selected}</td>
For what it's worth, you might also consider using a form handling class
such as formsess, PEAR::HTML_QuickForm, etc. I use the latter, and my
template code is something like this:
<div{if $form.myelement.required} class="required">
<label for=$form.myelement.id>My Element Label</label>
{$form.myelement.html}
</div>
The renderer object for the form takes care of outputting the correct
markup for the input type.
FWIW!
--
Max Schwanekamp
NeptuneWebworks.com
541-517-9064
|