6.0.0-alpha14
6/27/25
Last Modified 6/2/05 by Chuck Hagenbuch
  • Backlinks
  • Similar Pages
  • Attachments
  • History
  • Back to

Util

bufferOutput()

How to get the output of another Horde function back as a string, even if that function itself outputs directly to the browser:

<?php


$html = Util::bufferOutput(array($formnew, 'renderActive'), $RENDERER, $vars, 'manageforum.php', 'post');

?>

Which is the same as the following function being called:

<?php


$formnew->renderActive($RENDERER, $vars, 'manageforum.php', 'post');

?>

... but we now have its output in the $html variable.