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
zaccaria
(Matteo Falsitta)
June 28, 2010, 1:16pm
2
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'
)
)
)
zaccaria:
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… I will back if there are any problem