I'd use output buffering in
the caller to do something similar. A bit of a different approach, but keeps the controller logic out of your view.
Include and make output part of your html output:
Code:
include 'the/file.php';
Include, but assign to a variable:
Code:
ob_start();
include 'the/file.php';
$html = ob_get_contents();
ob_end_clean();
--
Charlie Harvey's website - linux, perl, java, anarchism and punk rock:
http://charlieharvey.org.uk