複数のデータベースとの接続はできますかメイン接続はdatabase.phpからです
しかし、モデルから別のものがあり、私はそれを切り替えたい
このような
$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);