수 있습니까 여러 데이터베이스 주요 연결과 관련이 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);
이 코드는 내가 ** –