Welcome Guest, Not a member yet? Register   Sign In
Dynamic Content in CI
#7

[eluser]stuffradio[/eluser]
KISS (Keep it simple stupid)

Models -> Handles all database transactions
Views -> All the stuff that gets outputted to your brwoser
Controllers -> Controls what happens, logic can happen in here too.

You can store content for certain pages in a database.

Say you have page A, in your browser path you can go

http://mysite.com/index.php/page/index/A

You take the value from the 3 segment, that's the value A.

You go to the model and fetch the data for page A. You store the values of page A in variables and load them onto the view.

Try playing around with that concept, I have to go to school now... I'm sure others can help if you have other questions while I am gone.


Messages In This Thread
Dynamic Content in CI - by El Forum - 12-09-2009, 08:36 AM
Dynamic Content in CI - by El Forum - 12-09-2009, 08:45 AM
Dynamic Content in CI - by El Forum - 12-09-2009, 11:18 AM
Dynamic Content in CI - by El Forum - 12-09-2009, 11:29 AM
Dynamic Content in CI - by El Forum - 12-09-2009, 12:22 PM
Dynamic Content in CI - by El Forum - 12-09-2009, 01:11 PM
Dynamic Content in CI - by El Forum - 12-09-2009, 01:16 PM
Dynamic Content in CI - by El Forum - 12-11-2009, 03:30 AM
Dynamic Content in CI - by El Forum - 12-11-2009, 04:40 AM
Dynamic Content in CI - by El Forum - 12-11-2009, 01:11 PM
Dynamic Content in CI - by El Forum - 12-12-2009, 05:15 AM
Dynamic Content in CI - by El Forum - 12-20-2009, 11:20 PM
Dynamic Content in CI - by El Forum - 12-21-2009, 08:38 AM
Dynamic Content in CI - by El Forum - 12-21-2009, 09:31 AM
Dynamic Content in CI - by El Forum - 12-21-2009, 06:02 PM
Dynamic Content in CI - by El Forum - 12-21-2009, 06:18 PM



Theme © iAndrew 2016 - Forum software by © MyBB