php smarty iterator

smartyのforeachで取得できる値。

{foreach item=result from=$result name=result}
{if $smarty.foreach.result.first}
件数:{$smarty.foreach.result.total}
{/if}
{$smarty.foreach.result.iteration}番目
{if $smarty.foreach.result.last}
終わり
{/if}
{/foreach}

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です