Re: [SMARTY] Strange error with compile_dir and cache_dir properties
| From: | Alex | Date: | Sat, 06 Mar 2004 16:36:34 +0000 |
| Subject: | Re: [SMARTY] Strange error with compile_dir and cache_dir properties | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-11071@lists.php.net to get a copy of this message | ||
You see, if you have a / at the beginning, this makes the path absolute to the server root, whereas if you don't have the slash, then the path is relative to the script's location
best regards,
alex
LPA wrote:
Hi, At the initialisation of the page I redefine directories properties. If I do $smarty->template_dir = "/include/template/templates/"; $smarty->compile_dir = "include/template/templates_c/"; $smarty->config_dir = "/include/template/configs/";$smarty->cache_dir = "include/template/cache/";it works but if I do $smarty->compile_dir = "/include/template/templates_c/"; I have this error : Fatal error: Smarty error: the $compile_dir '/include/template/templates_c/' does not exist, or is not a directory. in xxxxxxx/include\php\externe\smarty\Smarty.class.php on line 1102 I have the same problem with the cache_dir property but not with template_dir and config_dir. I know that the directories exists Thanx for you help