Ben smarty iç içe bir dizi döngü yaşıyorum, ve her eleman 'etkin' veya 'pasif' bir statüye sahiptir. Nasıl aktif ayarlanır dizideki son öğe tespit edebilirsiniz?
Örnek kod:
{foreach from=$steps item=step name=step}
{if $step.status == 'active' && ????? }
{/if}
{/foreach}