Re: Theme selector?
| From: | peter at schoenster dot com | Date: | Wed, 02 Apr 2003 02:49:21 +0000 |
| Subject: | Re: Theme selector? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-141914@lists.php.net to get a copy of this message | ||
On 1 Apr 2003 at 10:50, Steve Keller wrote:
> At 3/30/2003 12:42 PM, Lars Tvedt wrote:
>
> > i would have used templates: heres one
> > http://smarty.php.net
>
> > "Liam Gibbs" <liamgibbs@sympatico.ca> wrote in message
> > > I'd store your themes in stylesheets instead.
>
> Question, Lars, does Smarty allow for easy template changing? I haven't
> used it very much.
>
> Otherwise, if you're using CSS-P for your site, it'd be a snap just to
> store a cookie that includes which CSS file the user wants for their theme
> and just change the header.
Of course you'd use templates with CSS. I use template systems in
Perl (TT) and smarty for PHP. For both I just dynamically determine
the path to templates they want
/thin
/thick
and your templates can be completeley different, not just style
changes.
Also, I've not convinced anyone where I'm at now to use smarty. In my
mind they are penny-wise and pound foolish. The real little extra
time you might need to use a template system is richly rewarded in
code re-use and future changes to the site not to mention, imho,
thinking better about what one is doing.
Peter