CodeIgniter Forums
Class is Not Found After Upgrading codeigniter 4.0.x to 4.1.x - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=31)
+--- Thread: Class is Not Found After Upgrading codeigniter 4.0.x to 4.1.x (/showthread.php?tid=81755)



Class is Not Found After Upgrading codeigniter 4.0.x to 4.1.x - franciscaid - 04-24-2022

Currently i'm on codeigniter 4.1.9. I have a class in library and call it in controller. In previous Codeigniter 4.0.x, it works fine. But after upgrading Codeigniter to 4.1.9 there is error class not found.

Here is the code:


Code:
Use Export_csv;
$class = new Export_csv;


I upgrade the Codeigniter by downloading the rar from ci4, copy folder controller, library, model, and view to folder gplay app.

Big thanks for your help


RE: Class is Not Found After Upgrading codeigniter 4.0.x to 4.1.x - kenjis - 04-24-2022

It may be due to the removal of Autoloader::loadLegacy().
https://codeigniter4.github.io/userguide/changelogs/v4.1.0.html
https://github.com/codeigniter4/CodeIgniter4/pull/3483

Where do you have your class files?