01-18-2008, 04:18 PM
|
#2 (permalink)
|
|
The Frequenter
Join Date: Dec 2007
Location: Bucharest, Romania
Posts: 440
Thanks: 3
|
Capture the output of the file into the buffer, then just echo it. Like so:
PHP Code:
ob_start(); require $template_file; $template_contents_parsed = ob_get_contents(); ob_end_clean();
echo/return $template_contents_parsed;
This is the path I've chosen (over Smarty-like "template engines" and php function based templates). It's very fast, very useful, and extremely flexible. You can go with what ever suits you, just think of your needs first.
__________________
I have optimistic thoughts, even though sometimes (if not always) life's a bitch.
|
|
|
|