Re: [SMARTY] unable to read template resource error
| From: | Roy | Date: | Sat, 16 Nov 2002 17:57:02 +0000 |
| Subject: | Re: [SMARTY] unable to read template resource error | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-6451@lists.php.net to get a copy of this message | ||
A brief followup to my own message.
Seems to be related to the debug console (which makes sense, since it's probably invoked at the end of the script). It can't find the debug template (debug_tpl), even though it SHOULD have found it (since the manual claims it will use the SMARTY_DIR path and look for 'debug.tpl' by default.
Specifying a complete path via setting the debug_tpl file...
$this->debug_tpl = '/web/beatfarm/public_html/Smarty/Smarty/debug.tpl';
Generates a different error...
Fatal error: Smarty plugin error: [in /web/beatfarm/public_html/Smarty/Smarty/debug.tpl line 5]: unknown tag - 'assign_debug_info' in /home/beatfarm/public_html/Smarty/Smarty-2.3.0/Smarty.class.php on line 1980
So, I guess I'm still stuck how to control specific directory placement for caching, templates, etc. and still have the debugging console work.
Roy
At 09:40 AM 11/16/2002 -0800, Roy wrote:
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