代码改变世界

随笔档案-2012年3月21日

smarty手册-smarty中foreach循环语句详解

2012-03-21 23:09 by 狼人:-), 793 阅读, 收藏, 编辑
摘要: 原文地址:smarty手册-smarty中foreach循环语句详解作者:谭博{foreach}循环也有自身属性的变量,可以通过{$smarty.foreach.name.property}访问,其中"name"是name属性。Note: The name attribute is only required when you want to access a {foreach} property, unlike {section}. Accessing a {foreach} property with name undefined does not throw an e 阅读全文
点击右上角即可分享
微信分享提示