Adding output buffering to allow redirects to work after content has been outputted.

Signed-off-by: Ben Corlett <bencorlett@me.com>
This commit is contained in:
Ben Corlett
2012-05-17 11:47:10 +10:00
parent a6ad5c6dee
commit 056e547855
2 changed files with 33 additions and 0 deletions

View File

@@ -17,6 +17,20 @@ define('BLADE_EXT', '.blade.php');
define('DEFAULT_BUNDLE', 'application');
define('MB_STRING', (int) function_exists('mb_get_info'));
/*
|--------------------------------------------------------------------------
| Start Output Buffering
|--------------------------------------------------------------------------
|
| Output buffering allows us to capture all output at any time, so that we
| can discard it or treat it accordingly. An example of this is if you have
| echoed a string, but want to return a Redirect object. Because Symphony
| only checks if headers have been sent, your redirect just silently fails.
|
*/
ob_start();
/*
|--------------------------------------------------------------------------
| Require Core Classes