section 的預設變數
{section name=abc loop=20 start=2 step=3 max=18}
{if $smarty.section.abc.first == TRUE}
{/if}
-
index: {$smarty.section.abc.index}
index_prev: {$smarty.section.abc.index_prev}
index_next: {$smarty.section.abc.index_next}
iteration: {$smarty.section.abc.iteration}
rownum: {$smarty.section.abc.rownum}
{if $smarty.section.abc.last == TRUE}
{/if}
{sectionelse}
沒有結果可以顯示
{/section}
{if $smarty.section.abc.show}
total: {$smarty.section.abc.total}
loop: {$smarty.section.abc.loop}
{/if}