Welcome Guest, Not a member yet? Register   Sign In
Passing Data To Model
#1

[eluser]wakextreme[/eluser]
How do you normally pass posted data to your models.

* Pass entire $_POST array into the model.
* Access post data via $this->input->post('foo'); from inside the model.
* Read post data from $_POST or $this->input->post into vars inside the conroller and pass the vars into the model

I normally process the posted data in controller and pass it in so that my model methods are not dependent upon posted data, but i'm just curious how others usually handle it.

Thanks


Messages In This Thread
Passing Data To Model - by El Forum - 11-29-2007, 07:26 PM
Passing Data To Model - by El Forum - 11-29-2007, 08:08 PM
Passing Data To Model - by El Forum - 11-30-2007, 03:45 AM
Passing Data To Model - by El Forum - 11-30-2007, 03:49 AM
Passing Data To Model - by El Forum - 11-30-2007, 04:23 AM
Passing Data To Model - by El Forum - 12-04-2007, 06:01 PM
Passing Data To Model - by El Forum - 12-04-2007, 06:38 PM



Theme © iAndrew 2016 - Forum software by © MyBB