How Can I Do To Use The Beginclip In Yii2

Hello!

I can’t find this info in the definitive guide.

I’m trying to make a subpage with another pages, and for this I need to make the similar to ‘content_for’ of the Rails.

In Yii Framework 1.1 the name is beginClip.

Ex:




$this->beginClip('subpage');

echo 'CONTENT';

$this->endClip();


echo $this->clips['subpage'];



How can I do this in Yii 2??

Yes, it’s yii\widgets\Block now.

Thanks, man! xD