为什么静态页面不能包含smarty解析的页面

#1 hkbaby

[table]
[tr][td]<{php}> include_once($_SERVER['DOCUMENT_ROOT']."/index/top.php");<{/php}>
在静态页面为什么不能包含这个php页面[/td][/tr]
[/table]

2010-05-13 11:48:31

#2 jake

用 include_php 吧

建议看看smarty手册,了解smarty关于文件载入的资料
http://speedphp.com/doc/smarty/

PS:请不要一贴多发,谢谢!

2010-05-13 11:56:14