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

template dir

 
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 -> General
View previous topic :: View next topic  
Author Message
schoenung
Smarty Rookie


Joined: 05 Apr 2004
Posts: 28

PostPosted: Tue Aug 03, 2004 2:43 pm    Post subject: template dir Reply with quote

I'm having trouble setting up smarty's template dir on Win32. I have

Code:
//smarty set-up
require_once(SMARTY_DIR . 'Smarty.class.php');
$template = new Smarty;
//remove check in production enviroment
$template->compile_check = true;
$template->template_dir = 'c:/templates/';
$template->compile_dir = 'c:/templates_c/';
$template->cache_dir = 'c:/cache/';
$template->config_dir = 'c:/configs/';


I then get the following error even though the template is in the specified directory
Code:
Warning: Smarty error: unable to read resource: "onsite_reg.welcome.htm" in c:\Program Files\PHP\PHP4.3.8\includes\smarty\Smarty.class.php on line 2229

I would expect this tio mean smarty cannot find the file. However I've checked and double checked the paths/names etc. Is there something I'm missing here?
Back to top
View user's profile Send private message
boots
Administrator


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

PostPosted: Tue Aug 03, 2004 3:38 pm    Post subject: Reply with quote

probably the permissions are not appropriate
Back to top
View user's profile Send private message
schoenung
Smarty Rookie


Joined: 05 Apr 2004
Posts: 28

PostPosted: Tue Aug 03, 2004 5:07 pm    Post subject: Reply with quote

boots wrote:
probably the permissions are not appropriate


Where/How would I check these?
Back to top
View user's profile Send private message
boots
Administrator


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

PostPosted: Tue Aug 03, 2004 5:13 pm    Post subject: Reply with quote

what webserver?

Try this: see if you can write a PHP script to read files from your template dir and read/write files to your templates_c dir.
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 -> General 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