I have a helper file, it has a variable that I want to pass across to a view, but it comes across as empty, so I am a bit unsure if I have the right code or I have overwritten it later on _ though I am sure I have not!
anyway say the variable in ther helper file is an array that contains a list of data, and I use:
$this->load->helper('helperfile_helper'); //contains the variable 'productList'
$data['productList'] = $productList;
$this->load->view('page', $data);
I would expect that the helper file works like an 'include' with the defined variables available once the helper has been called, is this the casee or have I missed something??
helperfile_helper?