Closed GoogleCodeExporter closed 9 years ago
Read the 3.1.16 Release Notes.
If you use interitance with variable file names you must set
$smarty->inheritance_merge_compiled_includes = false;
Original comment by Uwe.Tews@googlemail.com
on 31 May 2014 at 1:08
Hi Uwe, thanks for the suggestion. This didn't resolve the problem,
unfortunately.
It would still take whichever index.tpl is already compiled in the template_c/
folder instead of being aware of the path of the index.tpl file, which is
different for each.
I think this arises since I'm using relative directories when setting the
template dir - the smarty compile id doesn't take into account the full path of
the template file, rather only the relative path (which is
./templates/index.tpl for each of these different apps/subapps.
I've managed to work around this by only passing directories by their
full/absolute path to set/addTemplateDir(), instead of a path relative to the
currently running script.
Should the compile id for a template take into account its absolute path,
instead of just its relative path?
Original comment by partingw...@gmail.com
on 1 Jun 2014 at 2:42
Just for my understanding:
You use templates relative to the runing script, but if smarty is mixing things
up you do have an absolute template_c folder. Right?
Original comment by Uwe.Tews@googlemail.com
on 2 Jun 2014 at 2:46
Each script runs in its own working directory. e.g. /app1/index.php will run in
with /app1/ as its cwd while /app1/subapp/index.php will run with /app1/subapp/
as its cwd. each of these dirs has a templates/ subfolder where the .tpl files
for that app live.
And then there's one global templates_c/ folder where all tpls get compiled, in
/core/smarty/templates_c
Original comment by partingw...@gmail.com
on 2 Jun 2014 at 3:02
The bugfix is now in the SVN trunk and will later be included in 3.1.19
Original comment by Uwe.Tews@googlemail.com
on 2 Jun 2014 at 8:15
Original issue reported on code.google.com by
partingw...@gmail.com
on 29 May 2014 at 10:44