[eluser]dallen33[/eluser]
I'm using Phil Sturgeon's autoload code so I can use a "Public_Controller" and extend my controllers.
His code looks like this:
Code:
/*
| -------------------------------------------------------------------
| Native Auto-load
| -------------------------------------------------------------------
|
| Nothing to do with config/autoload.php, this allows PHP autoload to work
| for base controllers and some third-party libraries.
|
*/
function __autoload($class)
{
if (strpos($class, 'CI_') !== 0):
@include_once( APPPATH . 'core/'. $class . EXT );
endif;
}
The errors I'm getting look like this:
Code:
ERROR - 2011-06-08 13:21:20 --> Severity: Warning --> include_once() [<a href='function.include'>function.include</a>]: Failed opening '/Applications/MAMP/htdocs/application/core/MY_Tasks.php' for inclusion (include_path='.:/Applications/MAMP/bin/php5.3/lib/php') /Applications/MAMP/htdocs/application/config/config.php 371
Of course, MY_Tasks and my other libraries are kept in libraries, but because of the autoload function, I'm getting these errors. My site loads fine, but it's only when I look at the log file do I see these errors.
Any ideas?