Re: [SMARTY-DEV] Cache names not persist to current directory change

From: Date: Tue, 01 Jun 2004 16:47:38 +0000
Subject: Re: [SMARTY-DEV] Cache names not persist to current directory change
References: 1 2 3  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-2358@lists.php.net to get a copy of this message
On Tue, Jun 01, 2004 at 08:35:28PM +0400, Dmitry Koteroff wrote: > >> If I have 2 templates with name a.tpl (/some/dir/a.tpl and > >> /other/dir/a.tpl) and use code something like this: > >> > >> chdir("/some/dir"); > >> $output = $smarty->fetch("a.tpl"); > >> chdir("/other/dir"); > >> $output = $smarty->fetch("a.tpl"); > >> > >> compiled caches for these tempates are in conflict. > MM> yes. if you didn't configure template_dir with an absolute path you > MM> are effectively using two different template_dirs when changing the > MM> pwd. you need a distinct compile_dir for each template_dir you use. > Great. > > >> (Appositely, Antony, here is the illustration of E_NOTICE=off > >> mortal effect. :-) > MM> uh, yes *very* mortal: we use of an undefined value! the world will > MM> collapse and all out boxes will get rooted immediately! :) > Something about that. :-) Fixed in cvs. Thanks! messju > -- > Best regards, > Dmitry Koteroff.

« previous php.smarty.dev (#2358) next »