Error on load view with @section

i’m try use @section but have error on print screen after, I have tried several methods but the error continues

It seems you should mention the layouts file correctly. If you have the dashboard.edge inside admin folder, You should do

@layout(‘admin.dashboard’)

Hope it will help

but dashboard it’s out admin

In main.edge You should have
@!section(‘content’)
In all other edge files, You can extend like

// if it is inside views folder 
@layout('main')
// if it is inside views/admin
@layout('admin.main')

@section('content')

@endsection

Make sure your routes are correct.

If all of this is correct then it’s weird.

1 Like