Welcome Guest, Not a member yet? Register   Sign In
Different database and URL configurations
#1

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:
  • I've got a master domain wich will run the application with default database that holds customer information and configuration
  • All my subdomains use the application from the master but running on his own database.
Reply
#2

This question is closed, have found a solution myself by writing and reading JSON formatted info.
Reply
#3

(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
Reply
#4

@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!
Reply




Theme © iAndrew 2016 - Forum software by © MyBB