Re: [htmltmpl] Cannot open included file test.tmpl
Brought to you by:
samtregar
From: Karen <kar...@gm...> - 2007-05-02 17:21:24
|
On 5/2/07, Alicia Amadoz <Ali...@uv...> wrote: > I have read something about environment variables HTML_TEMPLATE_ROOT > and HTML_TEMPLATE_PATH but I am very confused with how they should be > defined. Could anyone help me to solve this error? You can set the environment variables within Perl like so: $ENV{'HTML_TEMPLATE_ROOT'} = '/whatever/your/template/path/is'; You can also pass it from the environment (hence the name) but that introduces some taint issues. The "new" statement has a "path" option as well, which will be checked after the environment variable. And you can explicitly put the fully specified filename in the "new" statement (by starting it with "/") - useful for debugging, but of course if you do this everywhere and want to change it later, it defeats the purpose of the path variables. |