One of the most popular template engines is Smarty. Search on google for it.
There are plenty of others and even some modules that can be installed into
PHP for faster performance.

YOu can easily seperate logic from presentation with PHP, but most people
choose not to. For most simple projects out there, there's no reason to
involve database abstraction and templating...

---John Holmes...

----- Original Message -----
From: "Dave Smith" <[EMAIL PROTECTED]>
Sent: Wednesday, October 09, 2002 11:26 AM
Subject: [PHP-DB] Separating content from style

> Folks,
> I've just learned a bit about Java Beans and how they are useful in
> separating content from style. They let you do XSLT'ish stuff in your HTML
> to grab data while not bogging down your HTML with database-related
> function calls. I've heard this setup referred to as "templates" and
> "3-tier". It has all kinds of advantages, the biggest of which
> is probably the ability to specialize: Allow your web-designer
> to work with HTML/CSS and your DBA to work with SQL, with no
> overlap.
> Obviously, PHP doesn't really lend itself to this sort of setup at first.
> At least, I haven't found a good way to do it.
> Does anyone have any good docs on how to setup a 3-tier templated system
> in PHP that separates content from style? If not, how about a few words on
> this idea? What are your thoughts? How can PHP tackle this problem?
> advTHANKSance,
> Dave
> --
> PHP Database Mailing List (
> To unsubscribe, visit:

PHP Database Mailing List (
To unsubscribe, visit:

Reply via email to