{"issue":{"title":"Wrong lookup order in the loader","user":{"login":"essen","id":141739,"url":"https://api.github.com/users/essen","gravatar_id":"7d00dbf0d2c34e41b694e7ad8fafda02","avatar_url":"https://secure.gravatar.com/avatar/7d00dbf0d2c34e41b694e7ad8fafda02?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"created_at":"2011-12-26T16:36:47Z","milestone":null,"labels":[],"state":"closed","updated_at":"2011-12-26T17:06:15Z","id":2658906,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"closed_at":"2011-12-26T17:06:15Z","html_url":"https://github.com/EllisLab/CodeIgniter/issues/840","body":"Hello!\r\n\r\nWe 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.\r\n\r\nReversing 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\r\n\r\nNot sure if it's the right solution but it works for us, would love to see your thoughts on this issue.\r\n\r\nPinging @victou to keep him informed about this issue.","number":840,"url":"https://api.github.com/repos/EllisLab/CodeIgniter/issues/840","comments":2,"assignee":null},"action":"closed"}