Open RobinDev opened 10 months ago
NO Bc Break
Be able to have multiple children rendering the same section. Eg :
<!-- file1.php --> <?= $this->section('exampleSection') ?>
<?php $this->layout('file1.php') ?> <!-- file2.php --> <?= $this->start('exampleSection')) ?> <?php sleep(12) ?> <?php $this->stop() ?>
<?php $this->layout('file2.php') ?> <!-- file3.php --> <?= $this->start('exampleSection')) ?> <?php sleep(8) ?> <?php $this->stop() ?>
If i render file3.php, i will wait 12 + 8 seconds.
file3.php
<!-- file2.php --> <?= if ($this->start('exampleSection')) { ?> <?php sleep(12) ?> <?php } $this->stop() ?>
<!-- file3.php --> <?= if ($this->start('exampleSection')) { ?> <?php sleep(8) ?> <?php } $this->stop() ?>
If i render file3.php, i will wait 8 seconds.
Hope I am enough clear.
NO Bc Break
Be able to have multiple children rendering the same section. Eg :
Actually
If i render
file3.php
, i will wait 12 + 8 seconds.With this fork
If i render
file3.php
, i will wait 8 seconds.Hope I am enough clear.