Variable template directories.
| From: | IpSo | Date: | Wed, 06 Mar 2002 23:58:50 +0000 |
| Subject: | Variable template directories. | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-2956@lists.php.net to get a copy of this message | ||
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
--------------------------------------------------------------------
Never worry about viruses in your Email again.
Get your FREE! virus scanned Email accounts at http://snappymail.ca