This is a generic example of my MVC library structure. Nothing unusual, I wanted to keep it simple.
Library
- Configuration
- Modules (Database adapters etc)
- Core (Abstract controllers, routing functionality etc)
Application
- Model
- View
- Controllers
- Helpers
The advantages of this structure are that the library is not (which should not) be library dependent. This means that you can copy the library for use with other projects.
source
share