Re: Re: smarty vs. patTemplate vs. inclu
| From: | Awlad Hussain | Date: | Fri, 21 Feb 2003 12:44:49 +0000 |
| Subject: | Re: Re: smarty vs. patTemplate vs. inclu | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-136485@lists.php.net to get a copy of this message | ||
David,
Is there any point using smarty on s small site? eg: website consists of 6/8
pages?
does it matter on the size of the site?
-awlad
----- Original Message -----
From: "David Eisenhart" <david@erothe.freeserve.co.uk>
To: <php-general@lists.php.net>
Sent: Friday, February 21, 2003 11:31 AM
Subject: [PHP] Re: smarty vs. patTemplate vs. inclu
> I have never used patTemplate but from my experience Smarty is both fast
and
> robust (I now would not consider building a site without it)
>
> Even given your scenario I would recommend that you at least consider
using
> a templating engine. Smarty is very quick and easy to set up so just have
a
> play!
>
> David
>
>
> "David Caplan" <dcaplan@fusebox.com> wrote in message
> news:JMEFLFOGAPDJGGGEFHMHEEJFDOAA.dcaplan@fusebox.com...
> > Hi,
> >
> > I'm designing a site with about 100 different pages. I'm debating
whether
> to
> > use a template mechanism such as smarty or patTemplate vs just creating
> > pages and including the body templates based on the url parameters. I
> > realize you get a layer of abstraction using the template mechanisms,
but
> > with the scheme that I have in mind the users will only be editing the
> pages
> > that are marked body_foo.php. These body pages would be basically pure
> html,
> > so they can't really screw anything up in the php logic. They would be
> > called off an index.php that has a bunch of includes, header.php,
> body.php,
> > footer.php etc, this page would be off limits to the user for editing.
> >
> > From what I understand, both smarty and patTemplate are popular and both
> > have supporters and detractors, is one template significantly faster or
> more
> > stable than the other?
> >
> > If I just use includes, am I gonna run into problems, other than the
loss
> of
> > elegance and some abstraction that a template system might offer. My
site
> > will have approx 100 pages, with a peak of 600,000 hits per day.
> >
> > thanks for your help,
> >
> > Dave
> >
>
>
>
>
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>