Is this a Bug? Hook and library have same named functions and CI shows a error - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6) +--- Forum: Issues (https://forum.codeigniter.com/forumdisplay.php?fid=19) +--- Thread: Is this a Bug? Hook and library have same named functions and CI shows a error (/showthread.php?tid=65601) |
Is this a Bug? Hook and library have same named functions and CI shows a error - angeloghiotto - 06-29-2016 Hello, i was configuring some hooks, then i found this bug, i will describe: My hook config: PHP Code: $hook['post_controller_constructor'][] = array( In the LoginCheck, i have a function named isLogged, then when i try to load the site, i received this error message: Quote:Fatal error: Class 'CI_Seguranca' not found in\agenda\system\core\Common.php on line 196 Then i start to search why codeigniter was showing this error, then i remember that i have a function with the same name of Hook file in my Library Seguranca. When i changed the function name in Seguranca library, the error disapears. PS: The library Seguranca is in the autoload I think this is a sort of a bug. Sorry for the bad english |