• 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, 12:09 PM
Passing Data to a Model - by El Forum - 08-30-2008, 12:41 PM
Passing Data to a Model - by El Forum - 08-30-2008, 01:06 PM
Passing Data to a Model - by El Forum - 08-30-2008, 01:09 PM
Passing Data to a Model - by El Forum - 08-30-2008, 01:11 PM
Passing Data to a Model - by El Forum - 08-30-2008, 01:13 PM
Passing Data to a Model - by El Forum - 08-30-2008, 01:24 PM
Passing Data to a Model - by El Forum - 08-30-2008, 01:42 PM
Passing Data to a Model - by El Forum - 08-30-2008, 01:42 PM
Passing Data to a Model - by El Forum - 08-30-2008, 01:51 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


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