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
Laravel 5.2: Section-Include throws error #126
Comments
Hi, |
Hi, here is it:
Thanks. |
Hi Check your
then run
|
Hi,
In all case is working. I took a look into your fork and it seems ok. This is my test views. template-master.blade.php @extends('app')
@include('template-jsvalidator')
@section('content')
<form>
<!-- ....... -->
</form>
@yield('jsvalidator')
@endsection template-jsvalidator.blade.php @section('jsvalidator')
<script type="text/javascript" src="{{ asset('vendor/jsvalidation/js/jsvalidation.js')}}"></script>
{!! \JsValidator::formRequest('App\Http\Requests\FontUploadRequest') !!}
@stop |
Hello, I make a cleanup. Now I get the following error:
In your example you have a depth of 2 views. I have more then two. Currently my views are so: master.blade.php
configurator.blade.php
font_upload_button.blade.php
With this markup I get the error
This error is in file font_upload_button.blade.php Can u help ? |
I use my fork, which is based on your current master. I tested it to put it in master, but i get the same error. |
Hello, all is okay, I have a writing mistake in config for view path. Can u make here a better error message ? For example view not found or so ? Thanks for help! |
Hi, If the view is rendered using A quick solution for debugging is to use render() method tho generate Javascript Validations. In this case the exceptions are thrown as usual. JsValidator::formRequest('App\Http\Requests\FontUploadRequest')->render() Now I'm looking how to render instead of throw the Exceptions in __toString method. |
This is fixed in |
Hello,
I try to use the following code:
This section is in an template and include master template.
When i put this directly in master template all works correctly.
This results in the following error:
Symfony \ Component \ Debug \ Exception \ FatalErrorException (E_UNKNOWN) Method Proengsoft\JsValidation\Manager::__toString() must not throw an exception
I use currently the newest version.
Can u help ?
The text was updated successfully, but these errors were encountered: