• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Me Understand Passing Data

#1
[eluser]CIwannabe[/eluser]
Dear CodeIgniter Community,
I am very new to CodeIgniter but I am dedicated to working with it.

I have read the entire User Guide and almost everything is clear.

But the one area that leaves me a bit confused is performing database updates through a form. From what I understand, it works like this:
1. Data is pulled from the database via a model
2. The data is passed from the model to a controller, and then into a view, where it pre-populates form fields
3. Upon submission, the data moves from the view back through the controller, into the model
4. Once back in the model, ActiveRecord is used to actually change the database record

I don't quite get how to pass data between the model, controller, and view for this particular action.

Can anyone share a sample of a complete flow for this? Even seeing how a single field gets updated would help a lot!

Note: I have read the tutorials on NetTuts and they are great, but in the CRUD video they skip over the update function!


Messages In This Thread
Help Me Understand Passing Data - by El Forum - 09-17-2012, 07:11 AM
Help Me Understand Passing Data - by El Forum - 09-18-2012, 06:18 PM
Help Me Understand Passing Data - by El Forum - 09-18-2012, 06:42 PM
Help Me Understand Passing Data - by El Forum - 09-19-2012, 07:20 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.