• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Passing Data to a Model

#7
[eluser]Jesse Schutt[/eluser]
Wow! It worked!

So I pass whatever I want in the controller and than I can use it by whatever variable I assign it in the model?

Code:
//controller

$this->model->function(Whatever I want here)

//model
function($variable) {
echo $variable; //Whatever I want here
}


Messages In This Thread
Passing Data to a Model - by El Forum - 08-30-2008, 11:09 AM
Passing Data to a Model - by El Forum - 08-30-2008, 11:41 AM
Passing Data to a Model - by El Forum - 08-30-2008, 12:06 PM
Passing Data to a Model - by El Forum - 08-30-2008, 12:09 PM
Passing Data to a Model - by El Forum - 08-30-2008, 12:11 PM
Passing Data to a Model - by El Forum - 08-30-2008, 12:13 PM
Passing Data to a Model - by El Forum - 08-30-2008, 12:24 PM
Passing Data to a Model - by El Forum - 08-30-2008, 12:42 PM
Passing Data to a Model - by El Forum - 08-30-2008, 12:42 PM
Passing Data to a Model - by El Forum - 08-30-2008, 12:51 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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