blade模版之页面的嵌套

blade模版

相关关键词:@section @yield @extends @extends @show @parent(追加内容而不是覆盖)

父页面view\layout\f.blade.php

子页面view\s.blade.php

父页面:

     在子页面的相应位置写上@yield('content');

子页面:

     @extends('layout.f')

     @section('content')

         子页面

     @endsection

posted @ 2015-08-18 11:40  冰柠檬草  阅读(305)  评论(0编辑  收藏  举报