laravel/laravel — Issue #163: View __toString doesn't show errors
Author: jaysonic
Created: 2011-11-19 13:27:04+00:00
State: open

When using the magic method __toString with views no errors are reported.

For example, if I forgot to define a variable and did the following:

~~~~
echo View::make('my/nested/view')->render();
~~~~

It would throw the undefined variable error. However, if I were to drop the `View::render()` method it wouldn't error out, it just shows a blank page.

~~~~
echo View::make('my/nested/view');
~~~~

The above shows a blank page.