RE: [SMARTY] Template caching
| From: | Ryan Sarver | Date: | Wed, 19 Mar 2003 19:44:50 +0000 |
| Subject: | RE: [SMARTY] Template caching | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-8749@lists.php.net to get a copy of this message | ||
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...
any help would be greatly appreciated...
Ryan
-----Original Message-----
From: Jason Sweat [mailto:sweatjejm@mchsi.com]
Sent: Wednesday, March 19, 2003 2:03 PM
To: Ryan Sarver; smarty-general@lists.php.net
Subject: Re: [SMARTY] Template caching
From: "Ryan Sarver" <ryan@exit33.net>
> I am trying to write a script that selects a different template dir based
on
> the browser agent. So for all of hte basic browsers it serves a basic
site,
> but for wap/pda browsers it serves from a different dir. But even when it
> cant find the directory, it is showing some kind of cached version. I dont
> even have a Template_c dir. This is my basic code, i am using Netscape to
> mimic a PDA...
> Any ideas?
$lite = (test) ? 'lite/' : '';
...
$smarty->Display($lite."template.tpl", $lite);
Note the second parameter is a cache_id, which will not vary for each of
your versions.
Jason