Skip to content

Commit

Permalink
Fix DB Helper
Browse files Browse the repository at this point in the history
  • Loading branch information
herurahmat committed Jun 10, 2019
1 parent 7cf045c commit 5f99b39
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions app/core/helpers/rb_database.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ function rb_db_group_count()
function rb_db_data($dbGroup='',$table,$where=array(),$order="",$group="",$limit='',$start='')
{
$CI= &get_instance();
$CI->load->model(RIMBUN_SYSTEM.'/DB_model');
$d=$CI->DB_model->db_get_data($dbGroup,$table,$where,$order,$group,$limit,$start);
$CI->load->model('core/dbrimbun_model');
$d=$CI->dbrimbun_model->db_get_data($dbGroup,$table,$where,$order,$group,$limit,$start);
return $d;
}
}
Expand All @@ -32,8 +32,8 @@ function rb_db_data($dbGroup='',$table,$where=array(),$order="",$group="",$limit
function rb_db_row($dbGroup='',$table,$where=array(),$field)
{
$CI= &get_instance();
$CI->load->model(RIMBUN_SYSTEM.'/DB_model');
$item=$CI->DB_model->db_get_row($dbGroup,$table,$where,$field);
$CI->load->model('core/dbrimbun_model');
$item=$CI->dbrimbun_model->db_get_row($dbGroup,$table,$where,$field);
return $item;
}
}
Expand All @@ -43,8 +43,8 @@ function rb_db_row($dbGroup='',$table,$where=array(),$field)
function rb_db_count($dbGroup='',$table,$where=array())
{
$CI= &get_instance();
$CI->load->model(RIMBUN_SYSTEM.'/DB_model');
$item=$CI->DB_model->db_count_data($dbGroup,$table,$where);
$CI->load->model('core/dbrimbun_model');
$item=$CI->dbrimbun_model->db_count_data($dbGroup,$table,$where);
return $item;
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
use Rimbun\Common;
class DB_model extends CI_Model
class Dbrimbun_model extends CI_Model
{
private $sef;

Expand Down

0 comments on commit 5f99b39

Please sign in to comment.