することができます私は、複数のデータベース メインの接続との接続は、database.phpで複数のデータベース接続
が、モデル からで、別の1からのものであり、私はそれの間、この
ようを切り替えたいです
$config['remote']['hostname'] = 'localhost';
$config['remote']['username'] = 'root';
$config['remote']['password'] = '';
$config['remote']['database'] = 'countries';
$config['remote']['dbdriver'] = 'mysql';
$config['remote']['dbprefix'] = '';
$config['remote']['pconnect'] = TRUE;
$config['remote']['db_debug'] = TRUE;
$config['remote']['cache_on'] = FALSE;
$config['remote']['cachedir'] = '';
$config['remote']['char_set'] = 'utf8';
$config['remote']['dbcollat'] = 'utf8_general_ci';
$config['remote']['swap_pre'] = '';
$config['remote']['autoinit'] = TRUE;
$config['remote']['stricton'] = FALSE;
$this->load->database($config);
$this->load->database('remote', TRUE);
このコードは私が** –