|
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 |
domaichi Smarty n00b
Joined: 19 Jun 2012 Posts: 1
|
Posted: Tue Jun 19, 2012 5:25 am Post subject: 3.1.10 relative template path doesn't work on Win |
|
|
I updated 3.1.8 to 3.1.10 on Windows and found particular relative template path doesn't work.
In subclass of Smarty:
Code: | $this->template_dir = '../../templates/'; |
works well, but
Code: | $this->template_dir = '../../smarty/templates/'; |
will show blank screen.
In OSX, this problem does not occur.
Maybe something wrong with Smarty_Resource->normalizePath() ?
Thanks in advance. |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Tue Jun 19, 2012 5:56 pm Post subject: |
|
|
Note that you should not assign the directory properties directly but use the setter methods like
Code: | $smarty->setTemplateDir(....); |
Call $smarty->testInstall(); after the configuration of Smarty to check the configuration. |
|
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
|