CodeIgniter Forums
systemDirectory conundrum - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9)
+--- Thread: systemDirectory conundrum (/showthread.php?tid=92858)



systemDirectory conundrum - codeus - 05-06-2025

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


RE: systemDirectory conundrum - paulbalandan - 05-06-2025

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.