Yii Custom Layout untuk Controller di dalam Module

Konfigurasi module di config/main.php

'modules'=>array(
	'module_name'=>array(
		'layoutPath' => 'protected/modules/module_name/views/layouts'
	),
),

Konfigurasi Controller

public $layout = 'column2';

Konfigurasi module_name/views/column2.php

<?php $this->beginContent('/layouts/main'); ?>

Leave a Reply

Your email address will not be published. Required fields are marked *