[UPHPU] Template systems

Richard K Miller richardkmiller at gmail.com
Thu May 3 11:55:42 MDT 2007


On 5/3/07, Scott Hill <llihttocs at gmail.com> wrote:
>
> On 5/3/07, Wade Preston Shearer <lists at wadeshearer.com> wrote:
> >
> > I would recommend PHP. It is the best templating/display logic
> > language and system that exists.
>
>
> I agree.  You could create classes for forms, widgets, or whatever else
> you
> need.  With PHP you're only limited with what you can do with HTML and
> CSS.
>
>
I also agree. No need to use a separate templating system since PHP can do
it. If you use PHP for both the backend and the frontend, you essentially
have a MVC structure by definition.

For a good example, see WordPress. The core/backend WordPress code provides
an API to the template/frontend, enforcing MVC structure. There are
thousands of templates available (http://themes.wordpress.net/) which
contain simple templating functions like the_title(), the_content(),
the_author() instead of SQL or file system calls.  See
http://codex.wordpress.org/Template_Tags for more.


More information about the UPHPU mailing list