I'm building a folder structure and global configuration to allow me to create applications on Yii framework where all applications could share common codes, extensions or modules.
The idea is, each application would have the business level for that application, but, everything that can be shared between applications, we want to use as a common repository (models, extensions, widgets, etc)
For example, we want to share the Auth extension to control the system permission, but I want to 'install' Auth under the common folder instead under each application.
Below, the architecture that I would like to build:
I found the YiiBoilerplate as something similar, but they don'y configure Yii in such way that we want to.
The folder structure desire is:
common/
css/
images/
protected/
commands/
components/
config/
controllers/
extensions/
models/
views/
Application1/
css/
images/
protected/
commands/
components/
config/
controllers/
extensions/
models/
views/
So, let's go for some points:
If my user is under the application X (www.applicationx.com) and the login page is a 'common' structure I want to display to user something like this: www.applicationx.com/index.php?r=user/login.
I want to be able to 'navigate' between the application folder and the common folder easily.
I do not want to use Theme because I have different applications with different visual requirements and behaviors.
Any thoughts about this? Any good advices? Thanks in advance!