在smarty 中用PHP调用smarty中的变量
ecshop开发过程中经常用到非常方便
View Code
<!--{foreach from=$categories item=cat}-->
<?php echo $GLOBALS['smarty']->_var['cat']['name']; ?>
<a href="{$cat.url}">{$cat.name|escape:html}</a>
<!--{/foreach}-->
随心工作室
交流QQ:1595192997


浙公网安备 33010602011771号