smarty foreach as code example
Example: smarty foreach
{*Array of items*}
{foreach from=$myArray item=foo}
<li>{$foo}</li>
{/foreach}
{*Key value array*}
{foreach from=$myArray key=k item=v}
<li>{$k}: {$v}</li>
{/foreach}
{*Array of items*}
{foreach from=$myArray item=foo}
<li>{$foo}</li>
{/foreach}
{*Key value array*}
{foreach from=$myArray key=k item=v}
<li>{$k}: {$v}</li>
{/foreach}