smarty 中的for循环


{%section name=loop loop=$count%}
id是: {%$smarty.section.loop.index%}
{%/section%}


给count赋个值
$smarty->assign('count', 5);