- 论坛徽章:
- 0
|
/*3:不正常
$smarty->template_dir = substr(dirname(__FILE__), 0, -7).'.\data\templates';
$smarty->compile_dir = substr(dirname(__FILE__), 0, -7).'.\data\compile';
$smarty->config_dir = substr(dirname(__FILE__), 0, -7).'.\data\configs';
$smarty->cache_dir = substr(dirname(__FILE__), 0, -7).'.\data\cache';
改成上面这样行吗?
俺在XP上APACHE+PHP,如2设置正常。
//定义常量
define('FREEK_ROOT', substr(dirname(__FILE__), 0, -7));
define('FORUM_ROOT', FREEK_ROOT.'./forum/');
define('TPLS_ROOT', FREEK_ROOT.'./tpls/');
define('CACHE_ROOT', FREEK_ROOT.'./data/caches/');
define('COMPILED_ROOT', FREEK_ROOT.'./data/compiled/');
楼主是不是用用的IIS呀? |
|