Welcome Guest, Not a member yet? Register   Sign In
passing data to model
#11

[eluser]Colin Williams[/eluser]
Quote:Sure, but they don’t extract data directly from $this->input->post() do they? You actually pass it to them.

No, the controller passes it. As far as the model knows, it's just an array.
#12

[eluser]bigtimslim[/eluser]
Thanks for the great examples. I see what you guys mean now.
#13

[eluser]bigtimslim[/eluser]
By the way, JayTee, why is the underscore in front of the build_user function in your example? Does that denote the function is exclusive to this class?


Edit: you wrote private function, this must be the case Smile
#14

[eluser]TheFuzzy0ne[/eluser]
No, it denotes a private method that cannot be access via a URI. After all, you wouldn't want people running functions that aren't meant to be accessible by the user, would you? http://ellislab.com/codeigniter/user-gui...ml#private
#15

[eluser]bigtimslim[/eluser]
I certainly wouldn't. Thanks.
#16

[eluser]Milos Dakic[/eluser]
This clears up a few things for me too! Great examples =]




Theme © iAndrew 2016 - Forum software by © MyBB