Файл //layouts/main
Код: Выделить всё
<html>
...
<?=$content?>
...
</html>
Код: Выделить всё
<?php $this->beginContent('//layouts/main'); ?>
<aside class = "c-left">
<?php echo $content; ?>
</aside>
<aside class = "c-right">
<?php $this->beginContent('//layouts/parts/right_column'); ?>
<?php $this->endContent(); ?>
</aside>
<?php $this->endContent(); ?>
Код: Выделить всё
public $layout='//layouts/templates/tmp_two_columns';
...
$this->renderPartial('update',array(
'model'=>$model,
));
...