diff options
author | Shane Pearson <bubbafoley@gmail.com> | 2011-08-10 23:42:53 +0200 |
---|---|---|
committer | Shane Pearson <bubbafoley@gmail.com> | 2011-08-10 23:42:53 +0200 |
commit | 6adfe636980da3a7b25e5b87ed8bcd1d008a1243 (patch) | |
tree | ae56861471ef4a26e8cc062eae2ad539d262d667 /system/libraries/Profiler.php | |
parent | 664a9357cd36be2f8e673cae3643318a695de5fb (diff) |
Reset loaded files arrays in the Loader so the 404_override controller can access autoloaded libraries.
If a controller exists but a method is not found the current $CI
instance is unset and a new one is created for the 404 override
controller. Any autoloaded libraries will not be available to the 404
override controller because the Loader sees them as already have been
loaded. To fix this we need to reset the loader. I implemented it via an
initialize function that resets the loaded files arrays and then calls
the autoloader. This also simplifies things in CI_Controller because it
only has to call one loader function instead.
Diffstat (limited to 'system/libraries/Profiler.php')
0 files changed, 0 insertions, 0 deletions