--- Sandip Bhattacharya <[EMAIL PROTECTED]> wrote:
> On Tuesday, 8 Nov 2005 8:19 pm, Raj Mathur wrote:
>
> >
> > And to add my 2 paise worth, point 4 on the next slide (15)
> > conclusively shows the biggest problem with PHP -- mixing Model,
> View
> > and Controller into a single document. Unfortunately, this also
> Oh, come on. This is the biggest bit of unfair misinformation spread
> around
> about PHP. I have spent years looking at Perl CGIs with embedded
> HTML. Also,
> this is the whole point of Embperl, and JSP.
I dont think Raj was talking about Templating mechanism. Yes templating
is important. Yes it is also highly missused. Missused in the term that
the template shouldnt drive the application rather the application
should drive the template.
What Raj is talking about is separating the business logic from the
templating mechanism. I dont know much about PHP but I guess Raj is
saying these two layers are not actually independant layers in PHP
based implementations.
> The point is that PHP provides some very good templating engines like
> Smarty,
> PHPTemplate, etc., just as Perl provides HTML::Template. Whether a
> novice
> user feels the need for such a thing and looks around, is upto her.
> Most one
> page scripts dont, so it is overkill. I use here-documents to embed
> HTML
> templates within standalone scripts. It is simpler.
I would say most novices need templating mechanism whether they use a
standard package or whether they rig up something of their own is what
differentiates a novice from the expert.
Mithun
__________________________________
Start your day with Yahoo! - Make it your home page!
http://www.yahoo.com/r/hs
_______________________________________________
ilugd mailinglist -- [email protected]
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi
http://www.mail-archive.com/[email protected]/