Welcome Guest, Not a member yet? Register   Sign In
Switching database config for model not working: $this->load->database('name')
#3

[eluser]Unknown[/eluser]
I found your question because I was having the same problem.
I found the issue for me to be because I was auto loading the database library, which creates a database connection to your default database connection every time you load a page. You can turn this off in the config/autoload.php file
Change
Code:
$autoload['libraries']('database');
to
Code:
$autoload['libraries']();


Messages In This Thread
Switching database config for model not working: $this->load->database('name') - by El Forum - 07-24-2011, 08:27 PM



Theme © iAndrew 2016 - Forum software by © MyBB