dimanche 14 février 2016

Including a sub-view in the parent

I am trying to include a 'item' sub-view in the 'show' view

'show' is like this:

@extends('layout/layoutWhite')

@section('content')
    Text1
    @include('publicSurvey.item')
    Text2
@stop

and 'item' view

@section('content')
@parent
Text3
@stop

And the problem is that I need Text3 to be in between Text1 and Text2 but instead it is in the end of the parent view.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire