Different database and URL configurations - 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: Different database and URL configurations (/showthread.php?tid=79567) |
Different database and URL configurations - superior - 07-03-2021 Hi, I'm running a single application for different customers, in version 3 of CI i've made things work on different settings from the same application. Now i'm rebuilding everything in CI4 with the same idea but i think it might work in a better way than my current configuration in CI3. Does anyone have any tips on how to make this work properly? Idea:
RE: Different database and URL configurations - superior - 07-06-2021 This question is closed, have found a solution myself by writing and reading JSON formatted info. RE: Different database and URL configurations - wuuyun - 07-07-2021 (07-06-2021, 11:59 PM)superior Wrote: This question is closed, have found a solution myself by writing and reading JSON formatted info. I write a config file likeĀ site_a_db.php then require buy domain RE: Different database and URL configurations - superior - 07-09-2021 @wuuyun thank you for your reply! My configuration is managed from a master dashboard (statistics, usages and so on), so different files would be an extra handle to work with. But it could work indeed that way if you want to keep it easy! |