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
|
// Otherwise, a white screen of death will be shown if an exception occurs
|
||||||
// while rendering the view.
|
// while rendering the view.
|
||||||
try
|
try { include $path; } catch (\Exception $e) { Error::handle($e); }
|
||||||
{
|
|
||||||
include $path;
|
|
||||||
}
|
|
||||||
catch (\Exception $e)
|
|
||||||
{
|
|
||||||
Error::handle($e);
|
|
||||||
}
|
|
||||||
|
|
||||||
return ob_get_clean();
|
return ob_get_clean();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue