EllisLab/CodeIgniter — Issue #840: Wrong lookup order in the loader
Author: essen
Created: 2011-12-26 16:36:47+00:00
State: open

Hello!

We have been having an issue when we try to extend the class Loader into MY_Loader. The function load_class tries to load the children before the parent, therefore it loaded MY_Loader before CI_Loader and couldn't find the class CI_Loader, causing an error.

Reversing the order of paths in the following line fixes the issue, it works if we set BASEPATH, APPPATH instead of the one there: https://github.com/EllisLab/CodeIgniter/blob/develop/system/core/Common.php#L149

Not sure if it's the right solution but it works for us, would love to see your thoughts on this issue.

Pinging @victou to keep him informed about this issue.