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

Upgrade from 3.0 to 3.1.8, problem with paths

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


Joined: 13 Mar 2012
Posts: 1

PostPosted: Tue Mar 13, 2012 12:47 pm    Post subject: Upgrade from 3.0 to 3.1.8, problem with paths Reply with quote

I have defined the path to Smarty files:
Code:
define('SMARTY_DIR','C:/Apache2/htdocs/program/smarty/');
require_once(SMARTY_DIR.'Smarty.class.php');
$o_smarty = new Smarty();
$o_smarty->compile_dir = 'C:/Apache2/htdocs/program/smarty/_panel/template_c/';

and so on...
After I've upgraded Smarty all ending slashes changed into backslashes:
Code:
C:/Apache2/htdocs/program/smarty/_panel/template_c\

Where is the mistake?
Back to top
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Tue Mar 13, 2012 6:28 pm    Post subject: Reply with quote

Note that '\' is Windows standard directory separator and not '/'.
It's used by Smarty to make sure that there is a separator at the end.

But Windows accepts both '/' and '\'. A mix does not create a problem.
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