Hello all,
I'm having a little problem with Smarty. Getting it to work in a simple
case went fine, but now I have the following situation:
/
/smarty
/templates
template.tpl
/templates_c
/configs
/lezingen/
lezingen_beh.ph p
agenda_beh.php
/index.php
With files such as index.php, I can just access smarty by including
"smarty/Smarty.class.ph p" and displaying it with
$smarty->assign("templa te.tpl").
However, in the directory "lezingen" (which is protected using a
..htaccess file, but I doubt if that is of any relevance here) I am
unable to get smarty to work. I have tried adding the following code to
lezingen_beh.ph p and agenda_beh.php:
set_include_pat h(get_include_p ath() . ":../smarty");
This seems to solve *part* of the problem, but it still gives the
following error:
Warning: Smarty error: unable to read template resource: "template.t pl"
in /very_long_path/nieuw/smarty/Smarty.class.ph p on line 1042
Can anyone point out what the problem is and also how to fix it? I
couldn't figure it out using the smarty or php documentation.. .
Thanks in advance for any help,
--
Daan
I'm having a little problem with Smarty. Getting it to work in a simple
case went fine, but now I have the following situation:
/
/smarty
/templates
template.tpl
/templates_c
/configs
/lezingen/
lezingen_beh.ph p
agenda_beh.php
/index.php
With files such as index.php, I can just access smarty by including
"smarty/Smarty.class.ph p" and displaying it with
$smarty->assign("templa te.tpl").
However, in the directory "lezingen" (which is protected using a
..htaccess file, but I doubt if that is of any relevance here) I am
unable to get smarty to work. I have tried adding the following code to
lezingen_beh.ph p and agenda_beh.php:
set_include_pat h(get_include_p ath() . ":../smarty");
This seems to solve *part* of the problem, but it still gives the
following error:
Warning: Smarty error: unable to read template resource: "template.t pl"
in /very_long_path/nieuw/smarty/Smarty.class.ph p on line 1042
Can anyone point out what the problem is and also how to fix it? I
couldn't figure it out using the smarty or php documentation.. .
Thanks in advance for any help,
--
Daan
Comment