????
什么意思?看不明白!

解决方案 »

  1.   

    解释:如何在tpl文件中的{php}{/php}段中获取smarty中的变量
    eg:
    {foreach item=item name=list from=$list|smarty:nodefaults}
    {php}
     print  $item.author_id; 
    {/php}
    {/foreach}
     $item.author_id在tpl文件中可以直接显示值,如:<input type="hidden",name="dd" value="{$item.author_id}">
    但是我在{php}{/php}段中却不能调用,如何解决?
      

  2.   

    查看这个模板被编译后的代码就知道了