I am new to smarty and I am trying to get my assigned variable $dropcat to work – I can print_r out this array fine.
When I use the following method nothing displays why?
{foreach from=$dropcat item=cat}
<select name="{$cat.id}" multiple>
<option value="{$cat.id}">{$cat.name}</option>
</select>
{/foreach}
your code should be something like:
PHP
TPL
Note foreach inside select and assign in php code.
If still nothing appear, try to clear smarty cache, or your other project cache if any.