[Smarty] – how to use 『break or continue』 ?
Smarty 樣版引擎,
如何在 section 迴圈要使用如 PHP 中所使用的 break 或 continue 呢 ?
方法還是得利用 Smarty 中 PHP 方法…
{section name=loop loop=$record}
{if $record[loop].id == “xx”}
{php}break;{/php}
{php}continue;{/php}
{/if}
{/section}