cleaning up view code.
Signed-off-by: Taylor Otwell <taylorotwell@gmail.com>
This commit is contained in:
parent
711d60a506
commit
2a02b9f6ac
|
@ -201,7 +201,7 @@ public function render()
|
||||||
{
|
{
|
||||||
// To allow bundles or other pieces of the application to modify the
|
// To allow bundles or other pieces of the application to modify the
|
||||||
// view before it is rendered, we'll fire an event, passing in the
|
// view before it is rendered, we'll fire an event, passing in the
|
||||||
// view instance so it can modified by the composer.
|
// view instance so it can modified.
|
||||||
$composer = "laravel.composing: {$this->view}";
|
$composer = "laravel.composing: {$this->view}";
|
||||||
|
|
||||||
Event::fire($composer, array($this));
|
Event::fire($composer, array($this));
|
||||||
|
@ -232,7 +232,7 @@ public function get()
|
||||||
|
|
||||||
// We'll include the view contents for parsing within a catcher
|
// We'll include the view contents for parsing within a catcher
|
||||||
// so we can avoid any WSOD errors. If an exception occurs we
|
// so we can avoid any WSOD errors. If an exception occurs we
|
||||||
// will just throw it back out to the exception handler.
|
// will throw it out to the exception handler.
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
include $this->path;
|
include $this->path;
|
||||||
|
|
Loading…
Reference in New Issue