yield don't support 2 files having section for that yield
Blade has it resolved and here is article (https://vijayasankarn.wordpress.com/2017/02/03/add-multiple-contents-to-yield-from-section/) what's the problem and how to solve it, can we get that on that library? I'm talking about @push and @stack.
@Jarzebowsky You can append contents of your section using @section@show placeholder, instead of @yield, for example:
master.slice.php
@section('mySection') //your content here @show
sub.slice.php
@extends('master') @section('mySection') //content to append here @endsection
@davideloba Is it a proper way to do it?
@Jarzebowsky for me this works, let me know:
master.slice.php @Section('mySection') //your content here @show
sub.slice.php @extends('master') @include('subOne') @include('subTwo')
subOne.slice.php @Section('mySection') //first content to append here @endsection
subTwo.slice.php @Section('mySection') //second content to append here @endsection
I know what you are talking about, but thats (https://laravel.com/docs/5.6/blade#stacks) exactly what I'm missing.
I know blade @stack @push features but as far I can see, Slice doesn't have something like that. For my purposes (appending contents from different subviews) that workaround does what I need.
What about if I give some1 an ability to create module to my CMS, without giving him access to main view to make him include his section he created?