I created an function helper
for using in view now the function helper not work and I got this error:
Unable to load the requested file: helpers/mainhelper_helper.php
my helper:
function getCategories($id){
$CI =& get_instance();
$CI->db->select('*');
$CI->db->from('categories');
$CI->db->where('cat_parent_id',$id);
return $CI->db->get()->result();
}
I added my helper into autoload.php:
$autoload['helper'] = array('form','url' , 'mainHelper');
Best Answer
change the name of your helper file to
mainHelper_helper.php
and it will work.