I'm working on 20 websites and each one has his own database, but they have the same structure of database.
The problem is that I have to login to the different back-end to do some work on each one.
So, I decided to write single CI back-end for all of the websites.
For that, I created a database with two tables (user
, websites
)
The user
table is for the login action.
The websites
table list all websites and the associated database.
What I would like to do is, in any view of my backend application, be able to select the database (or website), so that the current view can be reloaded with data from the selected database to perform some work on it and then submit it.
I'm using CI V1.7.2