Welcome Guest, Not a member yet? Register   Sign In
Adding CodeIgniter to an existing site
#8

[eluser]pgsjoe[/eluser]
I am also trying to implement Code Igniter into an existing site and here's my question. I have the same layout for each section of pages. For instance, the 'About' section has the same header, callout, side navigation and footer. Only the content changes between the pages. But then between the 'About' and 'Contact' page, the callout and content change.

My question is, how do I set this up in CI? Like, what's the structure for doing such a thing?

Would I put each callout image in it's own database table and call it to the page?
Would all of the content be placed into the database and pulled from there, even images?
Or, would I create a separate view for each page?
What would be a view and what would be a controller? (I'm guessing the SECTION [about, contact, etc.] would be the view?)
If I have stuff in DIVs, would I only pull the content into the page, or include the divs with it wherever the information is stored?

Thanks in advance.


Messages In This Thread
Adding CodeIgniter to an existing site - by El Forum - 01-01-2008, 12:20 PM
Adding CodeIgniter to an existing site - by El Forum - 01-01-2008, 12:56 PM
Adding CodeIgniter to an existing site - by El Forum - 01-01-2008, 01:24 PM
Adding CodeIgniter to an existing site - by El Forum - 01-01-2008, 05:02 PM
Adding CodeIgniter to an existing site - by El Forum - 02-19-2008, 10:11 AM
Adding CodeIgniter to an existing site - by El Forum - 02-19-2008, 11:37 AM
Adding CodeIgniter to an existing site - by El Forum - 02-19-2008, 11:41 AM
Adding CodeIgniter to an existing site - by El Forum - 02-19-2008, 02:42 PM



Theme © iAndrew 2016 - Forum software by © MyBB