03-27-2009, 06:17 PM
|
#4 (permalink)
|
|
The Frequenter
Join Date: Dec 2007
Location: Bucharest, Romania
Posts: 438
Thanks: 3
|
PHP Code:
ob_start(); extract($templateVars, EXTR_PREFIX_SAME, 'some_prefix_'); include 'template_file.html'; $__parsed = ob_get_contents(); ob_end_clean();
echo $__parsed;
I forcedly used include there instead of include_once, for the case in which I need to include multiple template files, but with different contents (eg.: boxes of content).
__________________
I have optimistic thoughts, even though sometimes (if not always) life's a bitch.
|
|
|
|