!!! Listing 1: Array ausgebende Schleife $tpl = new Smarty; $tpl->assign("Headline","Städtenamen"); $tpl->assign("Staedte",array("Potsdam","München","Brb.")); $tpl->display("main.tpl"); {section name=SectStadt loop=$Staedte} {if $smarty.section.SectStadt.first} {/if} {/section}
{include file="head.tpl"}
{$Staedte[SectStadt]}
head.tpl:

{$Headline|upper|spacify}