Skip to content

Commit

Permalink
Update database disconnected
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenanhung committed Sep 14, 2024
1 parent e106cb4 commit 6603acb
Show file tree
Hide file tree
Showing 4 changed files with 364 additions and 221 deletions.
4 changes: 4 additions & 0 deletions custom/HungNG_CI_Base_Custom_Model_Credentials_model.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ public function __destruct()
{
if ($this->db->conn_id) {
$this->db->close();
log_message(
'info',
'HungNG_CI_Base_Custom_Model_Credentials_model - Database disconnected successfully!'
);
}
}

Expand Down
1 change: 1 addition & 0 deletions hungng/HungNG_Custom_Based_model.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ public function __destruct()
{
if ($this->db->conn_id) {
$this->db->close();
log_message('info', 'HungNG_Custom_Based_model - Database disconnected successfully!');
}
}

Expand Down
Loading

0 comments on commit 6603acb

Please sign in to comment.