Given that I create a blade using the following:

View::make('home', $data);

And within home.blade.php I have the following:

@extends('master')
@section('main')
    // groovy content
@stop

Where 'master.blade.php' is simply the main wrappers and a @yield to 'main'.

If I add @include inside home.blade.php it no longer extends from master.

So how do I include a subblade inside a blade that is extending another.

@extends('master')
@section('main')
    // groovy content
    @include('subcontent')
@stop   
有帮助吗?

解决方案

The subchild contained blade errors. It wasn't malformed HTML, but rather a php error occurring within an escaped section of the blade. The errors weren't being displayed though (possible because it was nested), so the output of the errors was being suppressed.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top