$smarty->assign("News", array("tit"=>"1001","cont"=>"this is test!"));
这个数组的遍历用SECTION是访问不到的,只能用FOR EACH访问,是不是?
本文探讨了在Smarty模板引擎中使用FOREACH遍历数组的方法,并指出对于特定类型的数组,如通过$smarty->assign方法传递的数组,只能使用FOREACH而不能使用SECTION进行遍历。
$smarty->assign("News", array("tit"=>"1001","cont"=>"this is test!"));
这个数组的遍历用SECTION是访问不到的,只能用FOR EACH访问,是不是?

被折叠的 条评论
为什么被折叠?
