smarty一维数组的引用
2008-07-30 11:49
index.php:
$smarty = new Smarty;
$Contacts = array(‘a’=>'123','b'=>'456')

$smarty->assign('Contacts',$Contacts);
$smarty->display('index.tpl');


index.tpl:
{$Contacts.a}<br>
{$Contacts.b}<br>
posted on 2011-08-15 16:52  佐伊凡  阅读(1132)  评论(0编辑  收藏  举报