Blog
Servicios
Contacto
Blog
Servicios
Contacto
Posts in smarty
Smarty first item of array
enero 6th, 2012
Posted by
freelo
php
,
smarty
0 thoughts on “Smarty first item of array”
{foreach from=$items key=myId item=i name=foo}
{if $smarty.foreach.foo.first}LATEST{else}{$myId}{/if}
{$i.label}
{/foreach}
Close
Type and hit enter