passing data to model |
[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.
[eluser]bigtimslim[/eluser]
Thanks for the great examples. I see what you guys mean now.
[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
[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
[eluser]Milos Dakic[/eluser]
This clears up a few things for me too! Great examples =] |
Welcome Guest, Not a member yet? Register Sign In |