Description:
Iterate an Array passed as a variable in a Smarty template
Solution:
The equivalent of foreach() clause in PHP translates as section in Smarty templates, as following:
{section name=arrayID loop=$theArray}
<input type=checkbox” name=”{$theArray[arrayID ]}”
{/section}
The code above outputs a sequence of check boxes named with the value of each element of the Array.