Re: [Nolug] PHP help

From: Petri Laihonen <pietu_at_weblizards.net>
Date: Fri, 18 Apr 2008 13:39:52 -0500
Message-ID: <4808EAF8.6000003@weblizards.net>

Joey Kelly wrote:
> On Friday 18 April 2008 10:22:19 am Petri Laihonen wrote:
>
>> I got lost with this statement.
>>
>> "why bother to learn the arcanities of a templating language like
>> smarty, when you already are using one with php?"
>>
>> How is PHP itself as template engine? Would it be easy enough for a
>> non-coding web designer to use?
>>
>>
>
> If you read that link I posted, PHP follows the callback templating model,
> while smarty uses the pipeline model.
>
> As an example of callback, take a look at my company site:
> http://www.kellynet.org
>
> I've opened up the templating code using .phps links:
>
> http://www.kellynet.org/index.phps
> http://www.kellynet.org/leftnav.inc
> http://www.kellynet.org/tables.phps
>
> and as an example of the content:
>
> http://www.kellynet.org/Linux.phps
>
> Ok, so I'm not much of a programmer, but you get the picture.
>
> Callback means that code is interspersed in HTML. Pipeline means that... on
> second thought, go read the page I posted instead, it knows this stuff better
> than I do.
>
>
Got it.....

I've used both methods and possibly combinations thereof....
I just did not know any fancy names for them....

Petri

___________________
Nolug mailing list
nolug@nolug.org
Received on 04/18/08

This archive was generated by hypermail 2.2.0 : 12/19/08 EST