В классе yii\widgets\ContentDecorator.php нашел комментарий
Но так и не понял как можно вызвать из layout* Ends recording a clip.This method stops output buffering and saves the rendering result as a named clip in the controller.
Но так и не понял как можно вызвать из layout* Ends recording a clip.This method stops output buffering and saves the rendering result as a named clip in the controller.
Код: Выделить всё
<?php $this->beginContent('@app/views/layouts/base.php'); ?>
...layout content here...
<?php $this->endContent(); ?>
Код: Выделить всё
$this->beginBlock('block1');
....
$this->endBlock();
Я понимаю, что в виде есть beginContent() для вставки контента, что безусловно необходимо, а зачем ещё beginBlock()? Для чего он применяется?mass писал(а):у view есть блоки
Код: Выделить всё
$this->beginBlock('block1'); .... $this->endBlock();