Re: [SMARTY] Template caching

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

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