That is the way I write pages for the eclipse.org website. See for
example: /projects/europa.php
The only additional thing I use is:
$html = ob_get_contents();
ob_end_clean();
$App->generatePage( ..., $html, ... );
The ob_end_clean allows further code to write to the output stream
normally. See http://us3.php.net/ob_get_contents
Michal Chmielewski wrote:
I am not very familiar with PHP but the $html = <<< EOHTML line is
really making the HTML content be buried in the PHP code.
> ...
I read a little about output buffering in PHP and this template seems
more logical to me and fixes these 2 issues.
Anything that I am missing ?