config.php autoload question - 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: config.php autoload question (/showthread.php?tid=40352) |
config.php autoload question - El Forum - 04-06-2011 [eluser]LuckyFella73[/eluser] Hi there, I'm extending my controller like Phil suggested on his blog. For getting that to work we have to place the "autoload - code" in our config.php I never had a problem with that but in my actual project where I use the old Ajax-Library (found in the CI Wiki) I get this error message in my logs: Code: ERROR - 2011-04-06 15:45:00 --> Severity: Warning --> include_once(application/core/MY_Xajax.php) [<a href='function.include-once'>function.include-once</a>]: failed to open stream: No such file or directory D:\xampp\htdocs\edc\admin_201\application\config\config.php 388 I have CI 2.0.1 installed I just would like to know why the autoload function is looking for MY_Ajax.php in application/core ? config.php autoload question - El Forum - 06-30-2011 [eluser]internut[/eluser] getting the same errors... config.php autoload question - El Forum - 06-30-2011 [eluser]InsiteFX[/eluser] Here is the new autoloader which was updated: Code: /* InsiteFX config.php autoload question - El Forum - 06-30-2011 [eluser]internut[/eluser] I'm not using v2 but the older version. Is this ok: Code: function __autoload($class) ? Seems to be working on. Could I run into problems with this? config.php autoload question - El Forum - 06-30-2011 [eluser]InsiteFX[/eluser] It should work fine if your not using CI 2.0.+ InsiteFX config.php autoload question - El Forum - 06-30-2011 [eluser]internut[/eluser] thx @InsiteFX - seems to be working just fine. |