Re: [SMARTY] Template caching
| From: | Jason Sweat | Date: | Wed, 19 Mar 2003 19:50:55 +0000 |
| Subject: | Re: [SMARTY] Template caching | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-8750@lists.php.net to get a copy of this message | ||
----- 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.