application structure

Hi all.

i want use application structure like this:

http://www.yiiframework.com/wiki/155/the-directory-structure-of-the-yii-project-site/

but i cant understand how to write modules in it. need i create module dir both in backend and frontend parts (or in common too)?

will it be a duplication of code?

i think structure must be like this:




/

    backend/

        modules/

            module1/

                models/

                    BackendModel extends CommonModel

    common/

        modules/

            module1/

                models/

                    CommonModel

                    StaticModel

    frontend/

        modules/

            module1/

                models/

                    FrontendModel extends CommonModel



and all models, that dont extends models from common part, need to be imported.

sorry for my english.

in your common folder add all modules(mail,rights) that are shared within the application.

then autoload all modules to either of the project (frontend or backend)

http://www.yiiframework.com/forum/index.php/topic/31912-loading-modules-from-external-directory/

[color="#008000"]NOTE: moved to proper section (Miscellaneous instead of Tips, Snippets and Tutorials)[/color]