Welcome Guest, Not a member yet? Register   Sign In
CMS Application structure
#2

[eluser]Phil Sturgeon[/eluser]
I use Matchbox for my CMS but its the same idea.

Modules each have an admin controller (if not they don't show up on my admin navigation tabs) and have all their views in an admin sub-folder. There is no need for front/back separation as they all use the same data.

Quote:- modules

—- blog
—-- controllers
——-- admin.php
——-- blog.php
—-- models
—-- views
---- admin
----- index.php
----- edit.php
---- index.php

—- comments
—-- controllers
——-- admin.php
——-- comments.php
—-- models
—-- views

- models
- views

This can be accessed via http://example.com/blogs
This can be accessed via http://example.com/admin/blogs
This can be accessed via http://example.com/admin/blogs/edit/1

To see how my routes work, check out the following post where I answered this before.

Post: matchbox and that old admin folder question


Messages In This Thread
CMS Application structure - by El Forum - 12-16-2008, 01:54 PM
CMS Application structure - by El Forum - 12-17-2008, 06:02 AM
CMS Application structure - by El Forum - 12-17-2008, 06:03 AM
CMS Application structure - by El Forum - 12-17-2008, 06:06 AM
CMS Application structure - by El Forum - 12-17-2008, 09:19 AM
CMS Application structure - by El Forum - 12-17-2008, 09:35 AM
CMS Application structure - by El Forum - 12-17-2008, 09:43 AM
CMS Application structure - by El Forum - 12-17-2008, 09:45 AM
CMS Application structure - by El Forum - 01-02-2009, 10:04 AM



Theme © iAndrew 2016 - Forum software by © MyBB