I’m a newbie to Smarty template engine and I got stuck at this point. Actually I want to add 1 to 31 numbers to a dropdown in a Smarty template. Below is my code:
<select name="date">
{for $f = 1 to 31}
<option value="{$foo}">{$foo}</option>
{/for}
</select>
But it’s giving an error. Could you please help me out of this issue? Thanks in advance.
1 Answer