(How) Use Layout File On Parent Module - Nested Module

I have nested module,

App

[indent]Admin Module[/indent][indent][indent]Child Module[/indent][/indent][indent]Client Module[/indent][indent][indent]Child [size="2"]Module[/size][/indent][/indent]

[size="2"]I want to set different layout on Admin & Client Module and their children module will inherit the layout.[/size]

[size=“2”]I’ve done creating layout (module/view/layout/main.php) on each module [/size]

[size="2"]and added the line[/size]

[size="2"]




	public function init(){

			...

			$this->layout = 'main';

			...

	}



but I think it is not a best practice since it is not flexible.[/size]

How do I get around this by referring child layout to the parent layout?

Any suggestions guys? Thanks

[color="#556B2F"]/* Moved from "Bug Discussions" to "General Discussion for Yii 1.1.x" */[/color]