Hi,
I'm wondering how do I pass the variables set in an @include back to the calling blade template persons.partials.forms.bens._form15.
I have this in a sub view:
@include ('persons.partials.forms.bens._form15_checkifempty')
I have a variable in this include file called:
$bRequiredTrustOne = true;
But then the error is that this variable is not defined in calling template persons.partials.forms.bens._form15.
How come blade doesn't pass the variable back? One would think that it acts similar to a PHP include file but it doesn't really.
So how does one resolve this. I understand that I can use @yield
and @section
...@show
in a main master layout template and then use @section
...@show
in the subview with the @extends
at the top. But when I try and use similar code in my subview persons.partials.forms.bens._form15 and my @include ('persons.partials.forms.bens._form15_checkifempty')
it gives an error of reaching the max 100 limit. I guess it's going around in some loop. Looks like kind of a bug in Laravel 4.2.
Anybody have this problem? What's the solution?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community