 <p>Have you tried doing a <a href="http://www.smarty.net/docsv2/en/language.function.foreach.tpl" rel="nofollow">foreach</a> loop in Smarty?</p> <pre><code>&lt;ul&gt; {foreach from=$myArray item=foo} &lt;li&gt;{$foo}&lt;/li&gt; {/foreach} &lt;/ul&gt; </code></pre>