From 15f6747485b5912f657c2c0fce8f41c01c70d2ad Mon Sep 17 00:00:00 2001 From: "ctrlaltca@gmail.com" <> Date: Fri, 24 Jun 2011 22:12:36 +0000 Subject: merged in the patch for progressive rendering from #235; unit tests doesn't evidence any regression, but of course more proper testing is needed --- framework/TApplication.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'framework/TApplication.php') diff --git a/framework/TApplication.php b/framework/TApplication.php index b481f12a..1fc9485a 100644 --- a/framework/TApplication.php +++ b/framework/TApplication.php @@ -1252,10 +1252,11 @@ class TApplication extends TComponent /** * Flushes output to client side. + * @param boolean whether to continue buffering after flush if buffering was active */ - public function flushOutput() + public function flushOutput($continueBuffering = true) { - $this->getResponse()->flush(); + $this->getResponse()->flush($continueBuffering); } /** @@ -1264,6 +1265,7 @@ class TApplication extends TComponent */ public function onEndRequest() { + $this->flushOutput(false); // flush all remaining content in the buffer $this->saveGlobals(); // save global state $this->raiseEvent('OnEndRequest',$this,null); } -- cgit v1.2.3