From 96b2fa90ea0af8f1a636de7707067520a8682a89 Mon Sep 17 00:00:00 2001 From: totoprayogo1916 Date: Sat, 26 Nov 2022 19:59:11 +0700 Subject: [PATCH] hapus `$this->load->database();` Sudah diload lewat autoload --- donjo-app/controllers/Area.php | 2 -- donjo-app/controllers/Garis.php | 2 -- donjo-app/controllers/Gis.php | 2 -- donjo-app/controllers/Line.php | 3 --- donjo-app/controllers/Plan.php | 5 ----- donjo-app/controllers/Point.php | 2 -- donjo-app/controllers/Polygon.php | 2 -- donjo-app/models/Data_persil_model.php | 5 ----- donjo-app/models/Feed_model.php | 5 ----- donjo-app/models/Program_bantuan_model.php | 5 ----- 10 files changed, 33 deletions(-) diff --git a/donjo-app/controllers/Area.php b/donjo-app/controllers/Area.php index fb615cdad..b871a3c3e 100644 --- a/donjo-app/controllers/Area.php +++ b/donjo-app/controllers/Area.php @@ -13,8 +13,6 @@ public function __construct() $this->load->model('header_model'); $this->load->model('plan_area_model'); $this->load->model('user_model'); - - $this->load->database(); } public function clear() diff --git a/donjo-app/controllers/Garis.php b/donjo-app/controllers/Garis.php index c7109feaf..411c4d061 100644 --- a/donjo-app/controllers/Garis.php +++ b/donjo-app/controllers/Garis.php @@ -13,8 +13,6 @@ public function __construct() $this->load->model('config_model'); $this->load->model('header_model'); $this->load->model('plan_garis_model'); - - $this->load->database(); } public function clear() diff --git a/donjo-app/controllers/Gis.php b/donjo-app/controllers/Gis.php index 85f60350d..93bbaaba9 100644 --- a/donjo-app/controllers/Gis.php +++ b/donjo-app/controllers/Gis.php @@ -21,8 +21,6 @@ public function __construct() if ($grup !== '1') { redirect('siteman'); } - - $this->load->database(); } public function clear() diff --git a/donjo-app/controllers/Line.php b/donjo-app/controllers/Line.php index 91b2b895d..18854004a 100644 --- a/donjo-app/controllers/Line.php +++ b/donjo-app/controllers/Line.php @@ -10,11 +10,8 @@ public function __construct() parent::__construct(); $this->load->model('user_model'); - $this->load->model('header_model'); $this->load->model('plan_line_model'); - - $this->load->database(); } public function clear() diff --git a/donjo-app/controllers/Plan.php b/donjo-app/controllers/Plan.php index 3993efe91..1e8cea958 100644 --- a/donjo-app/controllers/Plan.php +++ b/donjo-app/controllers/Plan.php @@ -17,11 +17,6 @@ public function __construct() if ($grup !== '1') { redirect('siteman'); } - - //$this->load->library('ion_auth'); - - //$this->config->item('ion_auth') ; - $this->load->database(); } public function clear() diff --git a/donjo-app/controllers/Point.php b/donjo-app/controllers/Point.php index be5dfbad7..2efbe2ad8 100644 --- a/donjo-app/controllers/Point.php +++ b/donjo-app/controllers/Point.php @@ -10,10 +10,8 @@ public function __construct() parent::__construct(); $this->load->model('user_model'); - $this->load->model('header_model'); $this->load->model('plan_point_model'); - $this->load->database(); } public function clear() diff --git a/donjo-app/controllers/Polygon.php b/donjo-app/controllers/Polygon.php index ef441d7a6..b4b6f5391 100644 --- a/donjo-app/controllers/Polygon.php +++ b/donjo-app/controllers/Polygon.php @@ -13,8 +13,6 @@ public function __construct() $this->load->model('header_model'); $this->load->model('plan_polygon_model'); - - $this->load->database(); } public function clear() diff --git a/donjo-app/models/Data_persil_model.php b/donjo-app/models/Data_persil_model.php index e551a9d60..160b1c036 100644 --- a/donjo-app/models/Data_persil_model.php +++ b/donjo-app/models/Data_persil_model.php @@ -2,11 +2,6 @@ class Data_persil_model extends CI_Model { - public function __construct() - { - $this->load->database(); - } - public function autocomplete() { $sql = 'SELECT nik FROM data_persil diff --git a/donjo-app/models/Feed_model.php b/donjo-app/models/Feed_model.php index a3b558f49..04f390f82 100644 --- a/donjo-app/models/Feed_model.php +++ b/donjo-app/models/Feed_model.php @@ -2,11 +2,6 @@ class Feed_model extends CI_Model { - public function __construct() - { - $this->load->database(); - } - public function list_feeds() { $sql = "SELECT a.*,u.nama AS owner,k.kategori AS kategori diff --git a/donjo-app/models/Program_bantuan_model.php b/donjo-app/models/Program_bantuan_model.php index 4212ae3b9..91cf045b6 100644 --- a/donjo-app/models/Program_bantuan_model.php +++ b/donjo-app/models/Program_bantuan_model.php @@ -2,11 +2,6 @@ class Program_bantuan_model extends CI_Model { - public function __construct() - { - $this->load->database(); - } - public function list_program($sasaran = 0) { if ($sasaran > 0) {