Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Locating parse error #9

Open
kyobul opened this issue Sep 17, 2016 · 1 comment
Open

Locating parse error #9

kyobul opened this issue Sep 17, 2016 · 1 comment

Comments

@kyobul
Copy link

kyobul commented Sep 17, 2016

When an error is encountered in the .blade.php file the following output is thrown :

Fatal error: Method Illuminate\View\View::__toString() must not throw an exception, caught ErrorException: ... in C:\htdocs\project\file.php on line 0

It always points to line 0. Any way to get the line in the blade.php where the error occurs ?

@visavi
Copy link

visavi commented Jan 10, 2017

use Jenssegers\Blade\Blade;

$blade = new Blade('views', 'cache');
echo $blade->render( .... );

or
echo $blade->make('homepage', ['name' => 'John Doe'])->render();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants