Re: Variable template directories.
| From: | Monte Ohrt | Date: | Thu, 07 Mar 2002 01:11:21 +0000 |
| Subject: | Re: Variable template directories. | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-2959@lists.php.net to get a copy of this message | ||
I think you must use double quotes for that to work, btw.
Luc Saint-Elie wrote:
> 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
> >
> >-
>
> ---
> You are currently subscribed to smarty as: monte@ispi.net
> To unsubscribe send a blank email to $subst('Email.Unsub')
> Visit Smarty's homepage at §
4$‡®n¾H{
> òhttp://www.phpinsider.com/php/code/Smarty/