Flush existing output before the start method.

pull/57/head
Mike Cao 12 years ago
parent 5ec68f35d5
commit 2ce369cb50

@ -273,6 +273,11 @@ class Engine {
public function _start() { public function _start() {
$dispatched = false; $dispatched = false;
// Flush any existing output
if (ob_get_length() > 0) {
$this->response()->write(ob_get_contents());
}
// Enable output buffering // Enable output buffering
ob_start(); ob_start();

Loading…
Cancel
Save