`

smarty 中的for循环的实现!

 
阅读更多

用一段section模拟 
{section name=loop loop=$count} 
id: {$smarty.section.loop.index} 
{/section} 


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



分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics