[eluser]johnwbaxter[/eluser]
You can do the following if you want:
Controller:
Code:
function Jeff()
{
$harry = $this->session->userdata(’item’);
$this->load-model('Bert');
$this->Bert->ModelFunctionName($harry);
}
So from above you can pass the $harry variable to the model function you're calling by putting it in the brackets.
model:
Code:
function ModelFunctionName($harry)
{
$this->db->select($harry);
$query = $this->db->get();
}
Then in the model you tell it to expect a variable ($harry) when it's run and so the model can use this variable.
This is a very simplistic example but it should show you what you can do to pass data around.