![]() |
Loading a model with config array - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Loading a model with config array (/showthread.php?tid=11771) |
Loading a model with config array - El Forum - 09-22-2008 [eluser]textnotspeech[/eluser] I'm about to pull all of my hair out. I use two databases in my application, one for my purposes (referred to as my_database) and one database that is my clients. The client's database models are loaded dynamically with: Code: $this->load->model('Model_name', '', $config); Quote:Error Number: 1146Why is it trying to connect to the database in my config file when I'm clearly passing the connection options when I load the model. I had this working perfectly, I must have made a misstep somewhere because all of a sudden, my stuff is f'ed. I know there was a problem before with the 1.6.1 and I had a problem then too. I'm now using 1.6.3 (been using it for a while with no problems) and all of a sudden this problem is back. I'm going crazy here. Is this a bug or am I an idiot? |