Form Class - 2007-05-05 09:43:54
Hi All,
1. I've noticed if forms class and its prefilters/functions are not included, Smarty gives an error on encountering {input} tags in templates.
2. My question is - if I include inputs that do not belong to the current subform, like so:
{if $subform == 'one'}
{input name="id"}
{input name="name"}
{elseif $subform = 'two'}
{input name="email"}
{input name="phone"}
{/if}
will the above have any performance issues from the forms class' perspective or Smarty's perspective? Do the forms class/Smarty really skip processing/rendering the inputs that do not belong to the $subform? Or, is it better to use multiple templates - one for each subform? Please see point 1 above in this regard.
TIA