Re: [SMARTY] DYnamic template problems again

From: Date: Mon, 20 May 2002 22:36:56 +0000
Subject: Re: [SMARTY] DYnamic template problems again
References: 1 2 3 4  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-4314@lists.php.net to get a copy of this message
OK, hopefully this is your problem :-) When you are changing the template_dir path to switch to a new theme, you must supply a unique compile_id when calling display(). Otherwise you're different themes (that use the same template path relative to template_dir) will try to use the same compiled file, and you'll get very confusing results. You can probably just use your theme name for the compile id. $smarty->template_dir = "/path/to/templates/$theme"; $smarty->display('signup/index.tpl',null,$theme); Monte Ray wrote:
var $compile_check = true; Thats been set to true for the whole time so thats not it. It just makes no sense ----- Original Message ----- From: "Monte Ohrt" <monte@ispi.net> Cc: "Ray" <rayge99@hotmail.com>; "Smarty" <smarty-general@lists.php.net> Sent: Monday, May 20, 2002 1:01 PM Subject: Re: [SMARTY] DYnamic template problems again
If caching is off, then that shouldn't be the problem. If the cache directory is empty, that definately is not it. If compile_check set to false it will not recompile updated templates, be sure that is set to true! Monte Jason Sweat wrote:
Did you specify a cache_id that included the skin? ----- Original Message ----- From: "Ray" <rayge99@hotmail.com> To: "Smarty" <smarty-general@lists.php.net> Sent: Monday, May 20, 2002 10:28 AM Subject: [SMARTY] DYnamic template problems again I have setup 2 templates in their respective paths. once a template is compiled it seems to not notice when i change to the other template
path.
themes\skin1\templates\test.tpl themes\skin2\templates\test.tpl Where skin1 and skin 2 have very different looks. And the skin path is determined by a db entry. Its almost as if once it has been compiled it caches teh data yet
caching is
not on nor is there anything in the caching dir. If i delete the
compiled
file it will change to the new skin. but only if i do this... Any ideas?
-- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc.
-- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc.

« previous php.smarty.general (#4314) next »