摘要:
原文地址: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 阅读全文