Welcome Guest, Not a member yet? Register   Sign In
Basic CMS for CodeIgniter applications
#6

[eluser]gRoberts[/eluser]
I have made a number of CMS based sites on CI, infact every site I have made uses CI in this manner.

I simply have three tables.

Content
Page
PageTemplate

The page table contains a path, i.e. 'path/to/page' which using a MY_Router file, I check to see whether the current segments match this path. If so, I redirect the request a controller that passes across the PageID.

That page then has a template associated which determines which View to use. Within that view, it access data from the Content table based on the current PageID.

All in all, you can then use a CMS to edit the content easily.


Messages In This Thread
Basic CMS for CodeIgniter applications - by El Forum - 03-11-2010, 09:48 PM
Basic CMS for CodeIgniter applications - by El Forum - 03-11-2010, 10:43 PM
Basic CMS for CodeIgniter applications - by El Forum - 03-11-2010, 10:58 PM
Basic CMS for CodeIgniter applications - by El Forum - 03-12-2010, 03:06 AM
Basic CMS for CodeIgniter applications - by El Forum - 09-17-2010, 02:30 AM
Basic CMS for CodeIgniter applications - by El Forum - 09-17-2010, 06:44 AM
Basic CMS for CodeIgniter applications - by El Forum - 09-17-2010, 07:17 AM
Basic CMS for CodeIgniter applications - by El Forum - 09-17-2010, 07:19 AM
Basic CMS for CodeIgniter applications - by El Forum - 09-17-2010, 07:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB