Welcome Guest, Not a member yet? Register   Sign In
How to send the values of variable from controllers to models ?
#2

[eluser]Dirk Einecke[/eluser]
Hi,

in your controller:

Code:
echo $file_name;
$this->load->model('foobar_model');
$this->foobar_model->afunction($file_name);

in your model:

Code:
function afunction($filename) {
  // do something with $filename
}

Dirk


Messages In This Thread
How to send the values of variable from controllers to models ? - by El Forum - 02-15-2010, 08:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB