刚刚接触smarty,望各位指教。
我按照这篇入门文档测试了smarty
http://www.php5.idv.tw/documents/sm...rty20040209.htm
但是测试页面有些问题:
Warning: Smarty::fetch(C:/Inetpub/wwwroot/
smartydemo/templates_c\%%6B^6B2^6B2BF9A3%%test.htm.php)
[function.fetch]: failed to open stream: No such file or directory in
c:\Inetpub\wwwroot\smartydemo\class\Smarty.class.php on line 1251
Warning: Smarty::fetch() [function.include]: Failed opening
C:/Inetpub/wwwroot/smartydemo/templates_c\%%6B^6B2^6B2BF9A3%%test.htm.php
for inclusion (include_path=.;c:\PHP\PEAR;) in
c:\Inetpub\wwwroot\smartydemo\class\Smarty.class.php
on line 1251
PHP Warning:
Smarty::fetch(C:/Inetpub/wwwroot/smartydemo/templates_c\%%6B^6B2^6B2BF9A3%%test.htm.php)
[function.fetch]: failed to open stream: No such file or directory in
c:\Inetpub\wwwroot\smartydemo\class\Smarty.class.php
on line 1251 PHP Warning: Smarty::fetch()
[function.include]: Failed opening C:/Inetpub/wwwroot/smartydemo/templates_c\%%6B^6B2^6B2BF9A3%%test.htm.php
for inclusion (include_path=.;c:\PHP\PEAR;) in
c:\Inetpub\wwwroot\smartydemo\class\Smarty.class.php on line 1251
我的配置是win2003 (IIS6)
php安装在C:\php下面
其中的include_path已经被我改为:
include_path = ".;c:\PHP\PEAR;"
smarty是官方的2.6.9版本
这个问题能帮我解决吗?先谢了!
在templates的同级目录下再建templates_c目录