|
Re: Error with Codeigniter 4.1.4 [message #1844859 is a reply to message #1844791] |
Tue, 28 September 2021 04:43  |
Eclipse User |
|
|
|
Hi Eduardo,
I have set up a virtual machine matching your described environment, and duplicated what you are describing with the system folder. You don't need to worry about those autoload errors in the system folder. Eclipse PDT is detecting that the "Config\Services" class is not autoloadable, but CodeIgniter has its own autoloader (see system/bootstrap.php which requires the autoloader and requires and instantiates app/Config/Autoload.php to configure it). Eclipse can't know about this custom autoloader (or at least, without static analysis) so it is trying to warn you that some namespaces aren't autoloadable with e.g. composer.
When you say that you tried to execute, in what way did you try to execute - outside, using e.g. apache, or using Eclipse's "Run as ..."? For myself, I started a PHP development web server (using php -S localhost:8000), configured the default web server in Eclipse accordingly and then used Eclipse's "Run as PHP Web Application" to execute the index file and the framework ran normally.

Hope this helps.
|
|
|
Powered by
FUDForum. Page generated in 0.05764 seconds