[eluser]AeroCross[/eluser]
I'm using a custom-made model that connects to an external Wordpress database. Everything's working flawlessly, except when I activate the Database Sessions.
When I do, in the controller where I both use the WP model and the Database Sessions, I get an error indicating that the selected database doesn't have the requested table. The (incorrectly) selected database is the one I set up in the database.php config file.
I tried doing what the User Guide indicates:
Code:
$db1 = $this->load->database('wp', TRUE); // wordpress database as defined in database.php
$db2 = $this->load->database('ws', TRUE); // website database as defined in database.php
And adding $db1 or $db2 to my models - no luck, the model still throws an error.
Any reccomendations on how to use these two features altogheter?