Is this a Bug? Hook and library have same named functions and CI shows a error |
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 |
Welcome Guest, Not a member yet? Register Sign In |