Namespaces gone after change systemdirectory |
Hi
I'm very new to namespace stuff, i'm rebuilding my application CI3 to CI4 and and i'm some libraries with composer. when is split my folder structure in the way i want almost all the namespaces are gone except the following below, it look it happens when i change the following variable: $systemDirectory php spark namespaces +-------------+--------------------------------------------------------------+--------+ | Namespace | Path | Found? | +-------------+--------------------------------------------------------------+--------+ | CodeIgniter | /var/www/site-com/htdocs/vendor/codeigniter4/framework... | Yes | | App | ROOTPATH/App | Yes | | Config | APPPATH/Config | Yes | +-------------+--------------------------------------------------------------+--------+ All namespaces of this small list working, but i'm missing alot of namespaces from the vendor folder. The following things i have tried but not succes: - composer dump-autoload - composer update I'm using version: 4.4.0 What can i do to fix this? Kind regards, whatsnow
As yoda might not have once said " the force is not strong in me tonight" so .
You changed $systemdirectory but dont say what to. I can't see your structure . here is my in progress latest Code: [andrew@darkstar http]$ tree -L 1 joesoapdev here is my variable for systempath Code: public string $systemDirectory = __DIR__ . '/../../vendor/codeigniter4/framework/system'; could you do show us yours so we can get a handle on it
09-03-2023, 11:49 AM
(This post was last modified: 09-03-2023, 08:47 PM by ozornick. Edit Reason: Format code )
Hi,
Thank you for the quick response, the variable: public string $systemDirectory = '/var/www/site-com/htdocs/vendor/codeigniter4/framework/system'; I hope its fit to forum, here my tree structure: Code: htdocs
I found out that variable: APPPATH was set to : ../ after is changed ../../ it works on line 37 bootstrap.php in the vendor folder.
I when i print it , it was set to the Application folder and then vendor folder. Before: Code: f (! defined('ROOTPATH')) { After: Code: f (! defined('ROOTPATH')) { |
Welcome Guest, Not a member yet? Register Sign In |