Welcome Guest, Not a member yet? Register   Sign In
hellper call to undefined function
#1

Code:
hello. I have o module helper:
if (!function_exists('helper_module_count_item')){
 function helper_module_count_item($table = '', $parentid = 0){
 $CI =& get_instance();
 $count = $CI->db->where(array('parentid' => $parentid))->from($table)->count_all_results();
 return $count;
 }
}

//Im echo it to view table :
<?php echo helper_module_count_item('articles_item', $val['id]); ?>
my error: 
call to undefined function. thank you
Reply




Theme © iAndrew 2016 - Forum software by © MyBB