Template-dir problem.
| From: | Eskil Keskikangas | Date: | Mon, 03 Mar 2003 10:13:18 +0000 |
| Subject: | Template-dir problem. | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-8340@lists.php.net to get a copy of this message | ||
I want to use different layouts for the same script.
This is what I have tried:
$smarty->template_dir = '/templates/'.$_GET['site'];
$smarty->display('index.tpl');
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?
BG
Eskil