I was actually trying to implement SaaS architecture in Codeigniter with single Code-base and multiple databases...
To be clear, consider the following example : I've 3 clients namely client_1, client_2, client_3. I also have their respective databases - client_1_db, client_2_db, client_3_db.
So, my question is : there will be three urls with subdomains like - www.client_1.localhost.com, www.client_2.localhost.com and www.client_3.localhost.com. when any user requests for these urls, I have to select their respective databases for further process.
My project is being built with codeigniter and its HMVC..
thanks in advance..