![]() |
Using Sturgeon's native __autoload code, tons of errors on log file - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Using Sturgeon's native __autoload code, tons of errors on log file (/showthread.php?tid=42483) |
Using Sturgeon's native __autoload code, tons of errors on log file - El Forum - 06-08-2011 [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: /* 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? Using Sturgeon's native __autoload code, tons of errors on log file - El Forum - 06-08-2011 [eluser]InsiteFX[/eluser] Thats because your using his old code! Here is the new code... Code: /* InsiteFX Using Sturgeon's native __autoload code, tons of errors on log file - El Forum - 09-11-2012 [eluser]DIY_Peter[/eluser] Thanks, the symlink solution seems to work. Still, it would be easy if they included some method in CI to put your own 'common' classes in some central location. I think many people would benefit from that. |