Re: Easy Template class?

From: Date: Tue, 14 Nov 2000 10:45:11 +0000
Subject: Re: Easy Template class?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-25172@lists.php.net to get a copy of this message
But if you use the capabilities of PHP you will find two settings that may help solve this problem. auto_prepend and auto_append. You set these to include any code needed by your application. This removes the need for the designer to know anything about including anything. And you already are processing every file through PHP so no big deal. I just don't see the attraction to {whatever} vs <? whatever() ?>. In fact the designer is more familiar with using the < > characters than { }. Oh well. This is what makes PHP great. You can do it any way you want. :-) -- Jesse Swensen swensenj@bellsouth.net > From: Lawrence.Sheed@dfait-maeci.gc.ca > Date: Mon, 13 Nov 2000 20:41:51 -0500 > To: swensenj@bellsouth.net > Subject: RE: [PHP] Easy Template class? > > In the example below, you'd have to do something like > > <html> > <title> > <?php include "what_ever_functions.php"; TITLE(); ?> > </title> > stuff here... > <? MENU() ?> > </html> > > > vs > > <html> > <title> > {TITLE} > </tile> > stuff here... > {MENU} > </html>

« previous php.general (#25172) next »