Manage Second Column Content - Yii2

Hi Guys,

I really need your help. It seems to be basic but I cannot find anywhere how to do it.

Basically, if we have layout (views/layouts/main.php) with 2 columns:

<div class="container"><?= $content ?></div>

<div class="column2"><?= $content2 ?></div>

$content2 - it will show different content based on controller

Please let me know if it is not very clear.

Thanks in advance,

Can anybody guide how to do it? Please :)