smarty里SECTION如何循环一个值? - 技术问答

2025-03-18 01:24:13
推荐回答(1个)
回答1:

{section name=loop loop=$count}id: {$loop}{/section} 给count赋个值$smarty->assign(\'count\', 5);用一段section模拟:{section name=loop loop=$count}id: {$smarty.section.loop.index}{/section} 查看原帖>>