Date: 08/14/01
- Next message: Tarique Sani
email protected>>: "RE: [phplib] general template question" - Previous message: Kristian Koehntopp: "[phplib] This List Is Closing Down"
- Maybe in reply to: Philip Strnad: "[phplib] general template question"
- Next in thread: Tarique Sani
email protected>>: "RE: [phplib] general template question" - Reply: Tarique Sani
email protected>>: "RE: [phplib] general template question" - Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I use templates for almost all my dynamic content now. I've always really
disliked having to embed PHP tags in my HTML so I jumped on the template
bandwagon very quickly. For every page that needs PHP enhancement, I create
two files, one called xxxxxx.php and one called xxxxxx.html. I toyed with
keeping my template files in a separate directory, but found that this was
more trouble than it was worth.
Definitely give it a try and see how you like it. There are some issues you
have to work around (no more embedded PHP), but it's definitely worth it
(IMHO).
-----Original Message-----
From: Philip Strnad [mailto:philip <email protected>]
Sent: Monday, August 13, 2001 11:35 PM
To: phplib <email protected>
Subject: [phplib] general template question
All,
I've been using PHPLIB since the 6.x days and have never used the
Template class (please don't flame me!). I always had too many other
things going on to take a look at it. I know how great this class is
supposed to be, but I have one question: does anyone use Template for
dynamic pages or do most of you use it to "write" HTML files that are
then served statically? Is there a performance impact in opening a
template file everytime a page that uses the Template class is
requested? My whole site could work really well with templates.
Unfortunately most of the pages are dynamic so I'm not sure if templates
are the right way to go.
Thanks,
Philip
-- Abbestellen mit Mail an: phplib-unsubscribe <email protected> Kommandoliste mit Mail an: phplib-help <email protected>-- Abbestellen mit Mail an: phplib-unsubscribe <email protected> Kommandoliste mit Mail an: phplib-help <email protected>
- Next message: Tarique Sani
email protected>>: "RE: [phplib] general template question" - Previous message: Kristian Koehntopp: "[phplib] This List Is Closing Down"
- Maybe in reply to: Philip Strnad: "[phplib] general template question"
- Next in thread: Tarique Sani
email protected>>: "RE: [phplib] general template question" - Reply: Tarique Sani
email protected>>: "RE: [phplib] general template question" - Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

