[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Templates (was: [ale] Need a PHP/MySQL intern...)
- Subject: [ale] Templates (was: [ale] Need a PHP/MySQL intern...)
- From: jbwellsiv at yahoo.com (jb)
- Date: Wed, 13 Mar 2002 21:18:43 -0500
Ok...educate me here please.
I'm not sure I see any real benefit of using templates aside from making
your code look a bit prettier for someone who might be php illiterate or
terrified of non-html source. Looking at Smarty for an example, it
would seem that all (and forgive me if I'm wrong...this after a cursory
look ;-)) it provides is merely another layer of abstraction on top of
php...function calls that look different from actual function calls but
are still function calls...if/then/elses and loops likewise.
Where's the benefit? As far as being able to affect all pages on a site
with a single line change, can't you do this by including a general file
that would set a var like $background, or $fontcolor, etc.? As far as
separating presentation from business logic, can't this be accomplished
by function calls or objects (i.e., have a set of function libs or
classes specifically to handle bus. logic, and have your display code
make calls to these resources)?
Is Zope in someway different?
Someone enlighten me...
Benjamin Scherrey wrote:
> I've looked at Zope but find it a bit too invasive, especially its persistence model. Basically it carries some of
> the same downside as PHP does for me. I have seen some really good systems done in Zope, however, and
> I'm sure its a strong product but its not what I'm looking for.
> regards & later,
> Ben Scherrey
> 3/13/2002 6:44:42 AM, Joseph A Knapka <jknapka at earthlink.net> wrote:
>>You might look at Zope and Zope Page Templates. Zope rocks;
>>it's a free web application server implemented mostly in
>>Python: <http:www.zope.org>. ZPT allows you to achieve nearly
>>100% separation between presentation, content, and logic,
>>and allows application logic to be implemented in Python or
>>(so I believe, though I haven't tried it) Perl.
>>I haven't actually used ZPT in production yet, but I plan to
>>convert an existing client's Zope site to use ZPT in the near
> This message has been sent through the ALE general discussion list.
> See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
> sent to listmaster at ale dot org.
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
sent to listmaster at ale dot org.