|
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 |
Johny Smarty n00b
Joined: 13 Oct 2003 Posts: 1
|
Posted: Mon Oct 13, 2003 4:24 pm Post subject: Smarty is Displays Wrong Template Files |
|
|
my Smarty Version 2.3.1 is sometimes Loading the wrong Template File.
I wasn´t able to reconstruct this problem it just happend sometimes with different templates and sites.
$smarty is initialized in a config file where also
$smarty->template_dir is set
In the main php file the templates is displayed by
$smarty->display("templatename.tpl");
But sometimes smarty displays othertemplate.tpl
deleting all ./templates_c files had the effect that smarty did display anotherwrongtemplate.tpl
$smarty->display("fullpath/templatename.tpl") did display the right template
but after changing it back smarty did display wrongtemplate again
after $smarty->display("nonexisting.tpl") returned the smarty tpl not found error and changing back to $smarty->display("tmplatename.tpl") smarty displayed the correct template again.
I know this problem sounds a bit mysterious,
the site worked correct for weeks before this Problem applyed about 4-5 times
is here anybody who had a similar problem or knows anything helpful? |
|
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
|