Langsung ke konten utama

Konfigurasi Multiple Database CodeIgniter

$active_group = 'default';
$active_record = TRUE;

/* KONFIGURASI DATABASE SERVER ORACLE*/
$ocihost     = '192.168.177.103';
$ocitns      = 'tnsoracle';
$ocischema   = 'bW5jX3N1YnNjcmliZQ==';
$ocipassword = 'MTIzNDU2';

$db['default']['hostname'] = '(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST='.$ocihost.')(PORT=1521))';
$db['default']['hostname'] .='(CONNECT_DATA=(SERVICE_NAME = '.$ocitns.')))';
$db['default']['username'] = $ocischema;
$db['default']['password'] = $ocipassword;
$db['default']['database'] = ''; 
$db['default']['dbdriver'] = 'oci8'; 
$db['default']['autoinit'] = TRUE;
$db['default']['db_debug'] = TRUE;
$db['default']['pconnect'] = FALSE;    

/* KONFIGURASI DATABASE MYSQL  */

$db['gammu']['hostname'] = "192.168.177.183";
$db['gammu']['username'] = "gammu";
$db['gammu']['password'] = "gammu";
$db['gammu']['database'] = "smsd";
$db['gammu']['dbdriver'] = "mysql";

Komentar

Popular Posts

Menambahkan Item Id untuk HTML Attribut

{ border:false, frame:false, width: 225, margin: '5px 0px 10px 9px', items: [{ xtype : 'textfield', fieldLabel : 'Telephone', inputType :'password', id : 'telephone', inputId: 'item_telepon', width: 225, readOnly : true, fieldStyle :'background-image:none;background-color:#BDBDBD', },{ xtype : 'textfield', fieldLabel : 'Office no', inputType :'password', width: 225, id :'office_no', inputId: 'item_office_no', readOnly : true, fieldStyle :'background-image:none;background-color:#BDBDBD', },{ xtype : 'textfield', fieldLabel : 'Mobile no', inputType :'password', width: 225, id:'mobile_no', inputId: 'item_mobile_no', readOnly : true, fieldStyle :'back...

Extjs html class render

Ext.select('.datepicker').each(function(el){ new Ext.form.DateField({ allowBlank : true, renderTo: el, format:'m-d-Y', editable:false, width:140, fieldCls : 'tanggal x-form-field x-form-text x-trigger-noedit', }); }); Ext.select('.note').each(function(el){ new Ext.form.field.TextArea({ allowBlank : false, renderTo: el, grow : true, hideLabel : true, fieldCls : 'pesan x-form-field x-form-text x-trigger-noedit', }); });