Warning: rename(/tmp/wrt3mjOBd,../templates_c/16598974be41913e67d6e2462715a26137b17224.file.index.tpl.php) [function.rename]: Permission denied in /www/petdog/smarty/sysplugins/smarty_internal_write_file.php on line 48Warning: chmod() [function.chmod]: No such file or directory in /www/petdog/smarty/sysplugins/smarty_internal_write_file.php on line 50Warning: include(../templates_c/16598974be41913e67d6e2462715a26137b17224.file.index.tpl.php) [function.include]: failed to open stream: No such file or directory in /www/petdog/smarty/sysplugins/smarty_internal_template.php on line 434Warning: include() [function.include]: Failed opening '../templates_c/16598974be41913e67d6e2462715a26137b17224.file.index.tpl.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /www/petdog/smarty/sysplugins/smarty_internal_template.php on line 434基本就是这样报错,程序进行不下去,然后去/tep/看时,每刷新一次,红色部分都在变,tem下就增加一个文件。
其他的就不知道 了,为什么呢,大侠们。
其他的就不知道 了,为什么呢,大侠们。
为什么缓存不到templates_c里,找不到;设置里是这样的:
<?php
require_once("../smarty/Smarty.class.php");
$smarty = new Smarty;
$smarty->template_dir = '../templates';
$smarty->compile_dir = '../templates_c';
$smarty->config_dir = '../configs';
$smarty->cache_dir = '../cache';
$smarty->caching = false;
$smarty->debugging = FALSE;
Smarty小框架,别的都没用
$smarty->compile_dir = '../templates_c';
$smarty->config_dir = '../configs';
$smarty->cache_dir = '../cache';
你这些些配置最好用绝对路径。