the best structure for my cms?

Hello

I am about to start develping a cms using yii.

I concluded that the best scenario for me is to separate the frontend from the backend implementing the logic

described here with some changes as below:

Admin directory is a separate application inside the frontend directory. I am not sure about common directory however. Should i put it inside the main application or it is better to be in the admin area?





/

    admin/

        assets/

        css/

        protected/

            config/

            controllers/

            models/

            ...

            views/

            ...

            yiic.bat 

            yiic.php

        index.php

    assets/

    common/

        components/

        extensions/   

        ...

    css/

    framework/

    images/

    protected/

        config/

        controllers/

        models/

        ...

        views/

        ...

        yiic.bat 

        yiic.php

    index.php