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

[eluser]Mr. Pickle[/eluser]
I have modules (with their own controllers and models).
Each module gets a folder in the views folder.

So

views
- news
- save
- delete
- read
- pages
- save
- delete
- read
- etc ...
- save
- delete
- read

The save page manages both the create and update from the CRUD.
the read and delete pages are separate.
They all correspond with the read, save and delete functions in the controller and model.

The menu is generated in a global file checking the controller and action at that moment to give the active menu an active css style.


Messages In This Thread
CMS structure - by El Forum - 09-18-2010, 03:27 AM
CMS structure - by El Forum - 09-18-2010, 03:48 AM
CMS structure - by El Forum - 09-18-2010, 03:54 AM
CMS structure - by El Forum - 09-18-2010, 05:18 AM
CMS structure - by El Forum - 09-20-2010, 05:56 AM
CMS structure - by El Forum - 09-20-2010, 06:07 AM
CMS structure - by El Forum - 09-20-2010, 06:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB