Welcome Guest, Not a member yet? Register   Sign In
one codeigniter application folder run two databases
#1

Hi,

I know that it's possible to use a different database on the same connection but i want to use differents databases with differents connections with my CI application.

I have an application for many customers (so one codeigniter application folder), every customer has his own database and his own domain name but all clients need only one application. 

So I want to choose the database according to the domain :
  • domain.com/customer1/ ==> choose connection with database1
  • domain.com/customer2/ ==> choose connection with database2
Thanks for helping me with a solution.
Reply


Messages In This Thread
one codeigniter application folder run two databases - by morsi - 05-10-2019, 02:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB