Re: PEAR Templates with embedded PHP code

From: Date: Tue, 11 Jun 2002 21:27:06 +0000
Subject: Re: PEAR Templates with embedded PHP code
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-1622@lists.php.net to get a copy of this message
If you are going to add code to the templates, you are better off not using templates and embedding php code in the HTML directly. The idea of a template is to separate the form/display (template) from the function/logic (php code). You might want to rethink your application logic and the approach you need to use for your particular case. --- Earl Cooley III <shiva@io.com> wrote: > Is there some way that I can embed PHP code in a Template file? All the > ways I've tried just result in the literal text of the PHP code being > included in the resultant output file. I've even tried various uses of > eval(), but that didn't help. > > -- > e=sc^3 (shiva@io.com) Earl Cooley III > > -- > PEAR General Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > ===== --- Jesus M. Castagnetto (jcastagnetto@yahoo.com) Research: http://metallo.scripps.edu/ Personal: http://www.castagnetto.org/ __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com

« previous php.pear.general (#1622) next »