Re: Template Question
| From: | Jonathan Haddad | Date: | Fri, 13 Aug 2004 15:25:06 +0000 |
| Subject: | Re: Template Question | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-193706@lists.php.net to get a copy of this message | ||
eval takes a string and evaluates it as PHP, which I also thought would work. But this is a file of mixed PHP and HTML.
I've designed it this way because I work with guys that are dreamweaver crazy and want to do all their layout there.
Maybe I should parse the file, and eval() the PHP and echoing the HTML? Or is there a better way?
Jon
On Aug 13, 2004, at 8:09 AM, John Holmes wrote:
Jonathan Hadddad wrote:if there's any PHP code in the template file, it just gets echoed to the page. is there any way to have the code between the <? ?> evaluated instead of just echoed?? I realize an include would work, but the goal is to use a single file as the template. anyone got any suggestions?eval() -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com