My problem is I’m developing a site with CodeIgniter, and the actual site and the admin are separated in different folders and using their own controllers, views, and model.
I would like to use only one database.php for both, and I can’t really figure out how to point the admin database connection parameter to the site’s database.php
Could someone give me a hint?
Thank you.
Justing adding my comment above as an answer here so that it helps other to know what worked to solve the problem –
If both the sites are at the same server – one of the quickest ways to achieve this is to setup all the values in database.php and in another just remove all the content and add this line –