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

3.1.10 relative template path doesn't work on Win

 
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 -> Bugs
View previous topic :: View next topic  
Author Message
domaichi
Smarty n00b


Joined: 19 Jun 2012
Posts: 1

PostPosted: Tue Jun 19, 2012 5:25 am    Post subject: 3.1.10 relative template path doesn't work on Win Reply with quote

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
View user's profile Send private message
U.Tews
Administrator


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

PostPosted: Tue Jun 19, 2012 5:56 pm    Post subject: Reply with quote

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
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 -> Bugs 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