Creating Nested Module

Hi All,

I have search on the google how to create nested module, maybe you can show me how to do it, I will be happy for this. I don’t need clear with explanatin about nested module in yii documentation.

http://www.yiiframework.com/doc/guide/basics.module

Thanks

to create a nested module simply create a module inside a module.

So if you have a module ‘father’ and a module ‘child’ you have to create the directory ‘father’ under ‘module’.

In father you wil create a directory ‘child’ with the module structure




component

messages

modules

 - father

  -  controllers

  -  models

  -  modules

        -  child

             -  controllers

             -  models

             -  views

  -  views

models

...



in config main you have to set:




'modules'=>array(

	'father'=>array(

		'modules'=>array(

			'child'

		)

	)

)



Greats!! Thanks zaccaria, I will try it out. clear explanation… :slight_smile: I will back if there are any problem :slight_smile: