|
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 |
awil Smarty n00b
Joined: 13 Mar 2012 Posts: 1
|
Posted: Tue Mar 13, 2012 12:47 pm Post subject: Upgrade from 3.0 to 3.1.8, problem with paths |
|
|
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 |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Tue Mar 13, 2012 6:28 pm Post subject: |
|
|
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 |
|
|
|
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
|