Hello Yii2-Core Team
I read some interesting discoussion in github in the yii2 project.
There I saw following idea:
<?php $this->inherits('product.php'); // automatically passes current scope data to product.php ?>
<?php $this->beginBlock('specs')?>
<?= $this->parent() // outputting content of the block from the view mentioned in ->inherits() ?>
<div>5 year warranty included!</div>
<?php $this->endBlock()?>
<?php $this->beginBlock('description')?>
<?= $phoneDescription // totally replacing content ?>
<?php $this->endBlock()?>
This kind of syntax would make the layout-view management in Yii so much more flexibel. Do you maybe consider to add this feature in one of the next versions of yii2?
Thank you