Hi guys,
I’m developing a web application using Yii and I’m trying to make it modular. The structure of the application is as below
WebRoot/
    assets
    protected/
        components/
        controllers/
           TestController.php
        modules/
                module1/
                   controllers/
                         feature1/
                              TestAction1.php
        models/
    themes/
        basic/
            views/
                layouts/
                    main.php
                test/
                     test.php
i.e, I’ve defined the action in module1/feature1/test/TestAction1.php and am using this action in the controllers/TestController.php. TestAction1 is rendering the view test, i.e it is getting the view from the controller specific views directory. Is this a good approach to decouple views from the business logic, or do you think it makes the module less portable?