Welcome Guest, Not a member yet? Register   Sign In
Best way to pass a couple of variables from a Controller to a Model?
#2

[eluser]ccschmitz[/eluser]
Is there a reason you don't want to pass them as parameters to your model methods? i.e. do something like this in your controller:

Code:
$this->load->model('staff_model');
$this->staff_model->update_staff_events($completedstaffrows, $completedeventrows);

Then just have your model accept these params:

Code:
function update_staff_events($completedstaffrows, $completedeventrows)
{
    // do stuff with your vars...
}


Messages In This Thread
Best way to pass a couple of variables from a Controller to a Model? - by El Forum - 07-06-2011, 03:12 PM



Theme © iAndrew 2016 - Forum software by © MyBB