문제

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