SV: [SMARTY] unable to read template resource error
| From: | Paolo Nesti Poggi | Date: | Sun, 17 Nov 2002 20:49:31 +0000 |
| Subject: | SV: [SMARTY] unable to read template resource error | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-6462@lists.php.net to get a copy of this message | ||
Have you checked if you've forgot some
{include file=""}
tag around in your template?
Paolo
> -----Oprindelig meddelelse-----
> Fra: Roy [mailto:roy@monkeybots.com]
> Sendt: 16. november 2002 18:41
> Til: smarty-general@lists.php.net
> Emne: [SMARTY] unable to read template resource error
>
>
> Howdy Folks,
>
> All my Smarty templates generate the following error at the end of their
> execution...
>
> Warning: Smarty error: unable to read template resource: "" in
> /home/beatfarm/public_html/Smarty/Smarty-2.3.0/Smarty.class.php
> on line 589
>
> This confuses me, since it obviously finds the template directory (since
> it's displaying the page using the template). I am using the little trick
> extending the class, which allows more control over caching
> directories and
> the like. Here's the initial class I call...
>
> class Smarty_Setup extends Smarty {
>
> function Smarty_Setup() {
>
> // Class Constructor. These automatically get set
> with each new instance.
>
> $this->template_dir =
> '/web/beatfarm/public_html/Smarty/Smartystore/templates/';
> $this->compile_dir =
> '/web/beatfarm/public_html/Smarty/Smartystore/templates_c/';
> $this->config_dir =
> '/web/beatfarm/public_html/Smarty/Smartystore/configs/';
> $this->cache_dir =
> '/web/beatfarm/public_html/Smarty/Smartystore/cache/';
>
> }
>
> }
>
>
> I just confirmed that, if I disable the Smarty_Setup class and go back to
> using it the 'regular' way, it works fine. Is there something I'm missing
> that is causing this to barf right at the end? I'm pretty sure
> all my paths
> are correct. Is there something else I need to set?
>
> Roy
>
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>