[cvs] [Wiki] changed: HordeUtil

Chuck Hagenbuch chuck at horde.org
Wed Jun 1 23:20:38 PDT 2005


chuck  Wed, 01 Jun 2005 23:20:38 -0700

Modified page: http://wiki.horde.org/HordeUtil
New Revision:  1.1

@@ -1 +1,17 @@
++ 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:
+
+<code type="php">
+$html = Util::bufferOutput(array($formnew, 'renderActive'), $RENDERER, $vars, 'manageforum.php', 'post');
+</code>
+
+Which is the same as the following function being called:
+
+<code type="php">
+$formnew->renderActive($RENDERER, $vars, 'manageforum.php', 'post');
+</code>
+
+... but we now have its output in the $html variable.


More information about the cvs mailing list