Refactoring View class.
This commit is contained in:
parent
767a49f54b
commit
bbc8b8f954
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue