Hi, make sure that's @yield('containertest')
is in a test
template so it must show loke this:
~\resources\views\test.blade.php:
This is the Test template.
@yield('containertest')
and
~\resoureces\views\childtemplate.blade.php:
@extends('test')
@section('containertest')
Testing 'containertest'
@endsection
u must return the childtemplate
from the controller as view.
The syntax and location of the templates are correct, as you mentioned.
I did not understand what you mean by "u must return the childtemplate from the controller as view". If you mean that I have to do this in the controller method : return view ('childtemplate'); the result is an error:
ErrorException in C: \ wamp \ www \ Laravel \ vendor \ Laravel \ framework \ src \ Illuminate \ View \ FileViewFinder.php line 137: View [app] not found. (View: C: \ wamp \ www \ Laravel \ resources \ views \ teste.blade.php)
But I think we have to make the call to the parent template, is not it?
Ok, but the result is an error ("teste.blade.php" is a child template) :
ErrorException in C: \ wamp \ www \ Laravel \ vendor \ Laravel \ framework \ src \ Illuminate \ View \ FileViewFinder.php line 137: View [app] not found. (View: C: \ wamp \ www \ Laravel \ resources \ views \ teste.blade.php)
!!!!!!
I get an error :
ErrorException in C: \ wamp \ www \ Laravel \ vendor \ Laravel \ framework \ src \ Illuminate \ View \ FileViewFinder.php line 137: View [app] not found. (View: C: \ wamp \ www \ Laravel \ resources \ views \ childtemplate.blade.php)
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community