Codeigniter: Pass data to library funciton
- by Kevin Brown
I need my function to do one of two things based on the method variable, but I don't know how to get it done...
My controller:
function survey($method)
{
$id = $this->session->userdata('id');
$data['member'] = $this->home_model->getUser($id);
$data['header'] = "Home";
…