Re: [SMARTY] Template-dir problem.

From: Date: Mon, 03 Mar 2003 10:24:01 +0000
Subject: Re: [SMARTY] Template-dir problem.
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-8341@lists.php.net to get a copy of this message
At 11:13 03.03.2003 +0100, you wrote:
But when the files are compiled I get the same result from every "site value" I test. I think I've read something about separate compile_dirs. Or can I use a cache_id solve the problem?
Yes, you have to use a cache id to specify the cached page. From the docs: if(!$smarty->is_cached("index.tpl","FrontPage")) {
        $smarty->display("index.tpl","FrontPage");
} The second parameter should then be a unique ID, i.e. the page name & the language, or theme, or both, or even a real ID (number). Martin. Martin Kloss Need music? http://www.selling-sound.com Like the author? Buy the book at: http://www.amazon.de/exec/obidos/ASIN/3898422194/lingmmugd Get your daily dose of Lingo at the LingoPark: http://www.lingopark.com

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