only4u
2006-12-21 00:30:39 UTC
Example:
Google.com. If you view their source, the code is cropped.
Info:
I have read some information regarding php's ob_start but I am not sure if that would apply to me as the examples I've seen echo's the buffer, whereas the template class is derived from phpbb and it has it's own $template method to make the output.
Example of method I use:
$tpl->set_filenames(array(
'body' => 'index.tpl')
);
$tpl->loadfile('body');
$tpl->pparse('body');
My HTML code is in index.tpl, and the PHP code is in index.php. The $tpl call's the template class and builds the page on pparse.