systemDirectory conundrum |
Hi all,
Just did a test install of CI v4.6.1 with composer. All worked fine and dandy. I noticed that in app/Config/Paths the $systemDirectory is: PHP Code: public string $systemDirectory = __DIR__ . '/../../vendor/codeigniter4/framework/system'; I'm sure that in v4.5 (and earlier) $systemDirectory was PHP Code: public string $systemDirectory = __DIR__ . '/../../system'; and that for every install I would have to edit this to _DIR__ . '/../../vendor/codeigniter4/framework/system' in Paths.php Was this a bug? I'm curious because I've just seen a v4.4.0 installation (not mine) with system directory at the same level as app. Don't know why system directory would be at the same level as app. Was this for a non-composer install?? TIA Mike
I am assuming you installed codeigniter4/appstarter as your app (which is the right choice). As far as I remember, the paths did not change. The last change was 3 years ago adding native types to the property.
I'm thinking the previous installation you had is for the framework, not the appstarter. While both contain nearly the same set of files, you should always use appstarter when developing a new app. Use the framework if you have an existing app and want to integrate CI4.
Hi,
When you download the framework's zip file (instead of install the appstarter with Composer), the system folder is at the same level of the app folder... |
Welcome Guest, Not a member yet? Register Sign In |