• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.