smarty 中的for循环
{%section name=loop loop=$count%}
id是: {%$smarty.section.loop.index%}
{%/section%}
给count赋个值
$smarty->assign('count', 5);
转载于:https://blog.51cto.com/xuqin/1294091
smarty 中的for循环
{%section name=loop loop=$count%}
id是: {%$smarty.section.loop.index%}
{%/section%}
给count赋个值
$smarty->assign('count', 5);
转载于:https://blog.51cto.com/xuqin/1294091