|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
compuboy1010 Smarty Rookie
Joined: 20 Aug 2003 Posts: 10
|
Posted: Wed May 05, 2004 7:07 pm Post subject: Smarty can not find my template |
|
|
A class page.class is inheriting from Smarty
page.class.php is in the folder
root/classes/design/page.class.php
In the contructor of page.class I have:
$this->Smarty();
$this->smarty->template_dir = 'homepage/templates/templates/';
$this->smarty->compile_dir = 'homepage/templates/templates_c/';
$this->smarty->config_dir = 'homepage/templates/configs/';
$this->smarty->cache_dir = 'homepage/templates/cache/';
$this->caching = false;
The templates are under:
root/templates/templates
root/templates/templates_c
etc ...
The following error message comes up:
Smarty error: unable to read resource: "index.tpl" in N:\homepage\classes\smarty\libs\Smarty.class.php on line 1102
I have been working on this problem for 2 days now. Driving me nuts!!!
Could anybody help ?
Thx |
|
Back to top |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Wed May 05, 2004 8:21 pm Post subject: |
|
|
Hi.
Try using absolute paths for the smarty configuration, particularly on Windows. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|