From 9608a0dee727fb8b9221c8bfbeddab14d90f8a5c Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Fri, 8 Jul 2011 12:57:32 -0700 Subject: [PATCH] Removed comment bloat from View class. --- system/view.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/system/view.php b/system/view.php index c1016f9d..46159018 100644 --- a/system/view.php +++ b/system/view.php @@ -66,18 +66,12 @@ public function get() } } - // Extract the view data into the local scope. extract($this->data, EXTR_SKIP); ob_start(); $path = $this->find(); - // We include the view into the local scope within a try / catch to catch any - // exceptions that may occur while the view is rendering. - // - // 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); } return ob_get_clean();