Re: [SMARTY] Strange error with compile_dir and cache_dir properties
| From: | LPA | Date: | Sat, 06 Mar 2004 18:24:21 +0000 |
| Subject: | Re: [SMARTY] Strange error with compile_dir and cache_dir properties | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-11072@lists.php.net to get a copy of this message | ||
Yes but why it works for the template_dir or config_dir ?
"Alex" <alex@pvl.at> wrote in message news:4049FE12.9080803@pvl.at...
> 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
> >