CI 묻고 답하기

제목 해결))$db['default']['db_debug']를 한 페이지만 변경하고 싶은데 도와주세요.
글쓴이 작성시각 2015/10/15 09:53:45
댓글 : 1 추천 : 0 스크랩 : 0 조회수 : 13331   RSS
$active_group = 'default';
$active_record = TRUE;

$db['default']['hostname'] = 'localhost';
$db['default']['username'] = '';
$db['default']['password'] = '';
$db['default']['database'] = '';
$db['default']['dbdriver'] = 'mysql';
$db['default']['dbprefix'] = '';
$db['default']['pconnect'] = FALSE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = APPPATH.'cache/';
$db['default']['char_set'] = 'utf8';
$db['default']['dbcollat'] = 'utf8_general_ci';
$db['default']['swap_pre'] = '';
$db['default']['autoinit'] = TRUE;
$db['default']['stricton'] = FALSE;


디비 설정입니다
검색해보니 
 
$config['hostname'] = "localhost";
$config['username'] = "";
$config['password'] = "";
$config['database'] = "";
$config['dbdriver'] = "mysql";
$config['dbprefix'] = "";
$config['pconnect'] = FALSE;
$config['db_debug'] = FALSE;
$this->load->model('autoair_model', '', $config);


이렇게 하면 $config['db_debug'] = FALSE;로 될줄 알았는데 안됩니다.

 
$config['hostname'] = 'localhost';
$config['username'] = '';
$config['password'] = '';
$config['database'] = '';
$config['dbdriver'] = 'mysql';
$config['dbprefix'] = '';
$config['pconnect'] = FALSE;
$config['db_debug'] = FALSE;
$config['cache_on'] = FALSE;
$config['cachedir'] = APPPATH.'cache/';
$config['char_set'] = 'utf8';
$config['dbcollat'] = 'utf8_general_ci';
$config['swap_pre'] = '';
$config['autoinit'] = TRUE;
$config['stricton'] = FALSE;
$this->load->model('autoair_model', '', $config);


이것도 안되네요
 다음글 ci 개발에 특화된 에디터 있을까요 ? ( 이클립스는 ... (5)
 이전글 두개의 테이블에 insert 해야 하는경우 (1)

댓글

/ 2015/10/15 11:35:38 / 추천 0
디비 콘피그에서 그룹 두개로 나눠서 처리했습니다.