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 directory problems.

 
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
ucs308
Smarty n00b


Joined: 26 Nov 2003
Posts: 2

PostPosted: Wed Nov 26, 2003 12:55 am    Post subject: Smarty directory problems. Reply with quote

Smarty2.5
IIS 5.0
PHP 4.2.3

I have built a website that incorporates some use of Smarty. I have the site on a local server and it works fine, however when I upload it to my host it fails.

I thought the problem was related to permissions, but it seems that Smarty is trying to create the temp directories it needs in the root directory. I took a look at the local development machine and it has been doing the same thing there too. All the dev stuff is on the D: drive, and the directories that Smarty creates are all in D:\

I thought that by setting the following variables in the constructor of my class I would not have this trouble. Is this bug? A problem with configuration? Any ideas?

The variables I thought I need to set are as follows.

$this->template_dir = BM_SMARTY.'templates';
$this->compile_dir = BM_SMARTY.'templates_c';
$this->config_dir = BM_SMARTY.'configs';
$this->cache_dir = BM_SMARTY.'cache';

And the results for the local server are:-

Template_dir = D:\perforce\website\bm_smarty\templates
Compile_dir = D:\perforce\website\bm_smarty\templates_c
Config_dir D:\perforce\website\bm_smarty\configs
cache_dir D:\perforce\website\bm_smarty\cache
Back to top
View user's profile Send private message
boots
Administrator


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

PostPosted: Wed Nov 26, 2003 3:05 am    Post subject: Reply with quote

It sounds like the cache and templates_c directories do not exist where you are pointing them at. This should work with 2.5.0 but 2.6.0's handling seems to be better, IMO.
Back to top
View user's profile Send private message
ucs308
Smarty n00b


Joined: 26 Nov 2003
Posts: 2

PostPosted: Wed Nov 26, 2003 7:27 pm    Post subject: Reply with quote

You are right. I fixed the problem with 2.6 but only because 2.6 gave me an error message I understood. I am sure 2.5 would have been ok if I had understood what was going wrong. Thanks.
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