标签:
$person = array(‘name‘=>‘linken‘,‘height‘=>‘170‘,‘color‘=>‘black‘,‘addr‘=>‘American‘);$smarty -> assign(‘pson‘, $person);
通过literal标签,来保证smarty不解析
Smarty-在模板中遍历数组foreach
原文地址:http://www.cnblogs.com/hqt2050/p/5021685.html