![]() |
Multiple Applications - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: Multiple Applications (/showthread.php?tid=81690) Pages:
1
2
|
RE: Multiple Applications - kenjis - 04-13-2022 @Codinglander If you have "App\\" and "Config\\" in autoload.psr-4 of composer.json, remove them. Code: --- a/composer.json And update Composer's autoload configuration. Code: $ composer dump-autoload See Running Multiple Applications with one CodeIgniter Installation https://github.com/kenjis/codeigniter4-multiple-apps-sample RE: Multiple Applications - Codinglander - 04-13-2022 (04-13-2022, 04:29 PM)kenjis Wrote: Check the path is correct. Good Morning.... Path seems to be correct... but I don't understand why the other manuals using composer not working (e.g. MGatner's settings ). I need multiple applications for several projects for some sites for kindergarden, all hosted on one domain and there I need for each one subdomain. Therefore I want to use only ONE ci-installation with many apps, one for every kindergarden... (04-13-2022, 05:45 PM)kenjis Wrote: @Codinglander Aaaaaahhhhh.... With the guide on https://github.com/kenjis/codeigniter4-multiple-apps-sample now all works fine, thanks a lot. Maybe the official guide will be updated for upcoming users ![]() I mark this as solved !!! Thanks a lot, folks !!!!!! ![]() Your's Kighlander RE: Multiple Applications - kenjis - 04-14-2022 (04-13-2022, 10:32 PM)Codinglander Wrote: Maybe the official guide will be updated for upcoming users I sent a PR: https://github.com/codeigniter4/CodeIgniter4/pull/5897 RE: Multiple Applications - kenjis - 04-15-2022 @Codinglander I found this error is due to a bug. Quote:If the same namespace is defined in both CodeIgniter and Composer, CodeIgniter’s autoloader will be the first one to get a chance to locate the file. The namespace Config is defined in CodeIgniter. So it should be loaded even if Composer has a wrong path. I sent a PR to fix: https://github.com/codeigniter4/CodeIgniter4/pull/5902 Thanks for reporting! |