Here is my situation:
I have created a template system. A template is a single file that simply has the word {content} in it where the content belongs. The logo and the nav are in the template.
The first half of the file is read (up to {content} ). Then the content from the actual file is evaluated, then the remaining half of the template is printed.
So, for index.php, the first thing it does is include Template.php.
Template->Start() reads in the template file, and echos the first half.
The content is then executed.
Template->Finish reads in the remainder.
here's the problem...
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?
Jon
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php