Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Smarty can not find my template

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Installation and Setup
View previous topic :: View next topic  
Author Message
compuboy1010
Smarty Rookie


Joined: 20 Aug 2003
Posts: 10

PostPosted: Wed May 05, 2004 7:07 pm    Post subject: Smarty can not find my template Reply with quote

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!!!

Confused

Could anybody help ?

Thx
Back to top
View user's profile Send private message
boots
Administrator


Joined: 16 Apr 2003
Posts: 5611
Location: Toronto, Canada

PostPosted: Wed May 05, 2004 8:21 pm    Post subject: Reply with quote

Hi.

Try using absolute paths for the smarty configuration, particularly on Windows.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Installation and Setup All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP