Removed comment bloat from View class.

This commit is contained in:
Taylor Otwell 2011-07-08 12:57:32 -07:00
parent 924ecf879c
commit 9608a0dee7
1 changed files with 0 additions and 6 deletions

View File

@ -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();