SV: [SMARTY] unable to read template
| From: | Paolo Nesti Poggi | Date: | Fri, 21 Mar 2003 16:39:33 +0000 |
| Subject: | SV: [SMARTY] unable to read template | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-8815@lists.php.net to get a copy of this message | ||
> Fra: Elgi [mailto:elgi@tiscali.fr]
> Bonjour smarty-general,
>
> I have a dir "fr" with index.php
> and in "templates/fr" => index.tpl
>
> fr/index.php :
> define('SMARTY_DIR','smarty/');
> @require('../'.SMARTY_DIR.'Smarty.class.php');
> $smarty = new Smarty;
> $smarty->display('fr/index.tpl');
>
> Smarty say "unable to read template", why ?
I'm not so deep into it, however I think that you have to define SMARTY_DIR
as an absolute path, not just a chunck of a path. Smarty itself uses your
definition of SMARTY_DIR and in this way you're confusing it.
regards
Paolo