![]() |
load function helper module fail - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6) +--- Forum: CodeIgniter 3.x (https://forum.codeigniter.com/forumdisplay.php?fid=17) +--- Thread: load function helper module fail (/showthread.php?tid=83606) |
load function helper module fail - meliodas - 10-10-2022 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 ; } } |