RE: [SMARTY] Template caching

From: Date: Wed, 19 Mar 2003 20:25:56 +0000
Subject: RE: [SMARTY] Template caching
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-8752@lists.php.net to get a copy of this message
Ok, after some trial and error, i got it to work. It doesnt seem logical, but it works. when i use smarty includes i set file="./_header.html" and then explicitly turned off caching, invoked, clear_all_cache and set force_compile = true. A lot of it seems redundant, but it works... =] Jason, thanks for the pointers... -rs -----Original Message----- From: Jason Sweat [mailto:sweatjejm@mchsi.com] Sent: Wednesday, March 19, 2003 2:51 PM To: Ryan Sarver; smarty-general@lists.php.net Subject: Re: [SMARTY] Template caching ----- Original Message ----- From: "Ryan Sarver" <ryan@exit33.net> > That method is still returning essentially the same result. It seems to be > caching the _header.html and _footer.html templates that I am including in > my articles.html template. I have turned off caching and it still is doing > it. I even echo the template_dir and it shows the one it should, but hte > templates still seem to come from the baseline one... Leave $smarty->template_dir as "templates/"; $lite = (test) ? 'lite/' : ''; ... $smarty->assign('tpl_path', $lite); $smarty->Display($lite."template.tpl", $lite); template.tpl: {include file="$tpl_path_header.tpl"} <-backticks work only with CVS version I believe ... Should take care of you.

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