Welcome Guest, Not a member yet? Register   Sign In
How to Run/maintain "one" CI3 App hosted on multiple subdomains/ servers.
#5

(08-01-2019, 02:43 AM)mboufos Wrote: you can have different controllers for differest clients like
routes --> client1 go to --> client1/home
routes --> client2 go to --> client2/home
i dont know how complicated is your system but with routes you can redirect everything,

about the dbs info in 1 db i use like aes-256-cbc with iv password etc and i encrypt/decrypt when i want.
Btw you can keep the database connections in database file ( all of them ) and according to the site to load the info (i do this in models, so the controller will be clear you just pass the name on the db connection)


If the project is like CRM which the clients must login to do what ever they want, just save in ccokie the client name and keep the routes file
clean.
hmm maybe you could save the client name on 1st entry in cookie and do the rest of the staff according to that(encrypted ofc)

The biggest problem is that some clients have their own server with their version of the application which makes this a real pain in the bumbumĀ  Big Grin
Reply


Messages In This Thread
RE: How to Run/maintain "one" CI3 App hosted on multiple subdomains/ servers. - by bartMommens - 08-01-2019, 05:03 AM



Theme © iAndrew 2016 - Forum software by © MyBB