Refactoring View class.

This commit is contained in:
Taylor Otwell 2011-07-08 06:37:50 -07:00
parent 767a49f54b
commit bbc8b8f954
1 changed files with 1 additions and 8 deletions

View File

@ -78,14 +78,7 @@ public function get()
//
// Otherwise, a white screen of death will be shown if an exception occurs
// while rendering the view.
try
{
include $path;
}
catch (\Exception $e)
{
Error::handle($e);
}
try { include $path; } catch (\Exception $e) { Error::handle($e); }
return ob_get_clean();
}