jan  Wed, 04 Sep 2013 14:57:02 +0000

Modified page: http://wiki.horde.org/Doc/Dev/Buffer
New Revision:  3
Change log:  Add version note

@@ -1,5 +1,7 @@
-++ Output Buffering (H4)
+++ Output Buffering
+
+**##red|This information is valid for Horde 4 and later only.##**

Normally in PHP, one could wrap code in {{ob_start()}} and {{ob_get_clean()}} to grab output meant for the browser. Unfortunately, it is not so easy in the Horde framework since CSS stylesheet and JS output must not be sent until the page is entirely ready to output to the browser.

Therefore, it is necessary to use the Horde utility functions {{Horde::startBuffer()}} and {{Horde::endBuffer()}} to do output buffering. Example:

--
commits mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: [email protected]

Reply via email to