[brlug-general] PHP help
Alvaro Zuniga
gentooman at gmail.com
Fri Apr 18 09:35:45 CDT 2008
On Thursday 17 April 2008 18:17:13 Dustin Puryear wrote:
> Templating. We will be using a templating system to separate code from
> the presentation. What have you used? Thoughts?
FastTemplate.class.php
FastTemplate.class.php is a port from the Perl CGI Module and has served me
well for as long as I can remember in both PHP and Perl. I have never really
bother to test against anything else so I am satisfied assuming it does its
job well. Maybe you can test it and tell us all about it!
A lot of people are using Smarty these days. I do not know why. It is newer
and more complex. I have seen directories for caching purposes so surely
there are advantages, I just cannot think of a reason why to use it.
About caching, I like to use FastTemplate.class.php to recreate a static page
when statinc data update are needed; otherwise, simply read the previously
created static page. An example of a common update could be the modification
to the database for a menu entry from an admin panel. This in itself could
save the application a couple queries with a joins per click times the number
of users.
Alvaro Zuniga
More information about the General
mailing list