[eluser]esra[/eluser]
There is a contribution called Modular Separation by Zawk. It allows your MVC triads (models, views, and controllers) to be stored in a directory structure like a CMS. You need to read the forum thread referenced in the wiki article for additional changes contributed by others.
Quote:modules/
modules/modulename1/controllers/
modules/modulename1/language/
modules/modulename1/models/
modules/modulename1/views/
modules/modulename2/controllers/
modules/modulename2/language/
modules/modulename2/models/
modules/modulename2/views/
...
With some additional changes mentioned in the forum thread, you can also do something like this to store reusable view fragments embedded in your master views or templates:
Quote:blocks/
blocks/related_content/
blocks/popular_content/
blocks/random_content/
blocks/login/
blocks/menu/
...
And for master views or templates, you can store them in a separate directory structure which is useful if you need multiple master views (templates) or want to support template switching:
Quote:templates/
templates/templatename1/index.php
templates/templatename1/css/
templates/templatename1/js/
templates/templatename1/images/
templates/templatename2/index.php
templates/templatename2/css/
templates/templatename2/js/
templates/templatename2/images/
...
The Modular Separation contribution and Coolfactor's Proposed View Library X3 work great together, making it possible to create a CMS-like infrastructure.