Welcome Guest, Not a member yet? Register   Sign In
Class is Not Found After Upgrading codeigniter 4.0.x to 4.1.x
#1

(This post was last modified: 05-23-2022, 06:12 PM by franciscaid.)

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
Reply
#2

(This post was last modified: 04-24-2022, 06:04 PM by kenjis.)

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

Where do you have your class files?
Reply




Theme © iAndrew 2016 - Forum software by © MyBB