[eluser]juan1904[/eluser]
Ok, I put the function outside the object in MY_Controller.php, and now I get this error message:
A PHP Error was encountered
Severity: Warning
Message: require_once(system/application/libraries/objects/CI_DB.php) [function.require-once]: failed to open stream: No such file or directory
Filename: libraries/MY_controller.php
Line Number: 4
Fatal error: require_once() [function.require]: Failed opening required 'system/application/libraries/objects/CI_DB.php' (include_path='.;C:\php5\pear') in C:\wamp\www\newnhl\system\application\libraries\MY_controller.php on line 4
I've searched for CI_DB.php but I don't know what that has to do with anything since I'm not trying to include that file.