Re: Variable template directories.
| From: | Luc Saint-Elie | Date: | Thu, 07 Mar 2002 00:22:06 +0000 |
| Subject: | Re: Variable template directories. | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-2957@lists.php.net to get a copy of this message | ||
Hello,
You may want to try something like
$smarty->display('file:/home/foo/bar/templates/$themeID/templatename.tpl');
Luc
At 15:58 06/03/02 -0800, IpSo wrote:
I would like to offer a "themeable" website, and I figured Smarty would be perfect for such a thing. I could make the templates for each theme, put them in there own directory, ie: SMARTY_DIR/templates_theme1 SMARTY_DIR/templates_theme2 SMARTY_DIR/templates_theme3 Then have a variable that sets the template directory on the fly, so the user can switch between them on the fly. Would this be a recommended way of doing it? IpSo -