#1 hkbaby
<{include file=xxx.php? a=foot}> 为什么调用这样不能用呢?
想要调用xxx.php里的foot()这方法怎么用?
2010-05-13 09:53:24
#2 hkbaby
<{include file=xxx.php? a=foot}> 为什么调用这样不能用呢? 而且在静态页面包含不到php 页面
想要调用xxx.php里的foot()这方法怎么用?
2010-05-13 10:23:48
#3 jake
加上参数的PHP文件,如index.php?a=foot 这个是“浏览器的访问地址”,不是“服务器的文件包含地址”。
请看看smarty关于include的使用方法,include可以对包含的“服务器上的模板文件”传递参数的。
http://speedphp.com/doc/smarty/language.function.include.html
2010-05-13 11:19:29