Skip to content

Commit

Permalink
Added output buffering to App::serve() to allow additional headers to…
Browse files Browse the repository at this point in the history
… be set at any point in the page generation. This fixes a bug with nesting one View inside another, caused by the View attempting to set a header when it renders
  • Loading branch information
joechilds authored and AliasIO committed Jun 19, 2013
1 parent c882b22 commit e80e857
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Swiftlet/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ public function run()
*/
public function serve()
{
ob_start();
$this->view->render();
ob_end_flush();
}

/**
Expand Down

0 comments on commit e80e857

Please sign in to comment.