Welcome Guest, Not a member yet? Register   Sign In
What would be the best way to go about making a CMS?
#3

[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.


Messages In This Thread
What would be the best way to go about making a CMS? - by El Forum - 08-18-2007, 12:00 AM
What would be the best way to go about making a CMS? - by El Forum - 08-18-2007, 01:54 AM
What would be the best way to go about making a CMS? - by El Forum - 08-18-2007, 03:31 AM
What would be the best way to go about making a CMS? - by El Forum - 08-18-2007, 12:19 PM
What would be the best way to go about making a CMS? - by El Forum - 08-18-2007, 01:10 PM
What would be the best way to go about making a CMS? - by El Forum - 08-18-2007, 02:29 PM
What would be the best way to go about making a CMS? - by El Forum - 08-18-2007, 03:20 PM
What would be the best way to go about making a CMS? - by El Forum - 08-18-2007, 06:28 PM
What would be the best way to go about making a CMS? - by El Forum - 08-18-2007, 08:45 PM
What would be the best way to go about making a CMS? - by El Forum - 09-01-2007, 07:15 AM
What would be the best way to go about making a CMS? - by El Forum - 09-01-2007, 12:26 PM



Theme © iAndrew 2016 - Forum software by © MyBB