xin chào. tôi không thể gọi chức năng trợ giúp của mình để xem.
Lỗi nghiêm trọng: Lỗi chưa xảy ra: Gọi đến hàm không xác định helper_module_count_item () trong C: \ wamp64 \ www \ kinhtedautu \ app \ views \ backend \ posts \ category.php trên dòng 47
my code: <td class="center"><?php echo helper_module_count_item('articles_item', $val['id']);?></td>
helper module
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 () ;
trả về $ count ;
}
}