Module Into Another Module

Hi to Yii community

I want your opinions.

I develop a module and now I want a nested application (so a module) for that.

Ths nested module will be the admin of the main module.

I could make controllers and other components inside of the main module like other views models and controllers resided but I want a seperated folder-unit for that.

So, what is the best way to do that? Can I create a module into another module and how to manipulate that?

Thanks!

Hi KonApaz,

Basically you will have to added like this in your config/main.php:




'modules'=>array(

    'parent1'=>array(

        'modules'=>array(

            'child1',

            'child2',

            'etc',

        )

    ),

    'parent2'=>array(

        'modules'=>array(

            'child1',

            'child2',

            'etc',

        )

    )

)



And access:




parent1/child1/controllerIdChild1/actionIdChild1.