jjzjj

endsection

全部标签

php - Laravel Blade : @stop VS @show VS @endsection VS @append

在Laravel中,有不同的使用方式:@yield('section1')//Filledinbychildview@section('section2')//Defaultcontent,canbeoverwrittenbychild//Differentwaysofclosingthesection@endsection|stop|show|append谁能告诉我所有这些之间的确切区别是什么?根据this,@stop和@endsection可能相同。(其中一个已被弃用,但不再被弃用) 最佳答案 @endsection和@stop

php - Laravel Blade : @endsection vs @stop

在LaravelBlade中,我们基本上可以这样做:@section('mysection')@endsection@section('mysection')@stop@stop和@endsection有什么区别? 最佳答案 @endsection在Laravel3中使用,在Laravel4中被弃用在Laravel4中结束一个部分你必须使用@stop你可以在这里引用更新日志http://wiki.laravel.io/Changelog_%28Laravel_4%29#Blade_Templating

php - Laravel Blade : @endsection vs @stop

在LaravelBlade中,我们基本上可以这样做:@section('mysection')@endsection@section('mysection')@stop@stop和@endsection有什么区别? 最佳答案 @endsection在Laravel3中使用,在Laravel4中被弃用在Laravel4中结束一个部分你必须使用@stop你可以在这里引用更新日志http://wiki.laravel.io/Changelog_%28Laravel_4%29#Blade_Templating