发新话题
打印

谁用过DFP的模板?

谁用过DFP的模板?

谁用过DFP的模板
我按照教程中的操作,最后的结果是:
Fatal error: Smarty error: the $compile_dir '/tmp' does not exist, or is not a directory. in E:\CodeGear\Delphi for PHP\1.0\vcl\smarty\libs\Smarty.class.php on line 1095

TOP

DFP用得的模板是Smarty,你可以找下相关的Smarty的中文文档,网上很多,你的错误的结果产生的原因是相关的路径不存在,即不存在一个tmp目录,你可以试着在相应的发布文档下面建一个tmp目录、templates目录和templates_c目录,即跟你模板平等的目录下面建立tmp目录。
有奋斗,才能有收获

TOP

我也刚碰到此问题,谢谢二楼,俺去试试也!

TOP

问题的解决!

的确如二楼所分析的,问题的根源在于路径问题。不过,是在跟目录下见了一个TMP目录。然后就好了。

TOP

DFP 中 Smarty template 应用问题

报错:
Fatal error: Smarty error: the $compile_dir '/tmp' does not exist, or is not a directory. in C:\Program Files\CodeGear\Delphi for PHP\2.0\vcl\smarty\libs\Smarty.class.php on line 1092

请问各位有什么办法解决?
or is not a directory. in C:\Program Files\CodeGear\Delphi for PHP\2.0\vcl\smarty\libs\Smarty.class.php on line 1092

C:\Program Files\CodeGear\Delphi for PHP\2.0\vcl\smarty\libs\Smarty.class.php 是存在的


Smarty error: the $compile_dir '/tmp' does not exist 中tmp目录应建在哪个目录下面

TOP

你调试的文件放在哪个盘,就在该盘的根目录下建立一个tmp目录即可。
例如:
1、dfp调试的文件testtemplate.php放在c:\interpub\testtemplate\目录下,哪么就在c盘根目录下建立tmp目录即可
2、如果dfp调试的文件testtemplate.php放在d:\interpub\testtemplate\目录下,哪么就在d盘根目录下建立tmp目录即可

TOP

发新话题