[ Mini Kiebo ]
Server: Windows NT AKFAR_SERVER 10.0 build 26200 (Windows 10) AMD64
Path:
D:
/
xampp
/
htdocs
/
simaku-aset
/
application
/
models
/
[
Home
]
File: Mpenyusutan.php
<?php class Mpenyusutan extends CI_Model { function __construct() { parent::__construct(); $this->db2 = $this->load->database('db_simak', TRUE); $this->tbl = "tbl_penyusutan"; $this->id = "id"; } function create($data = null) { $this->db->trans_begin(); $this->db->insert($this->tbl, $data); if ($this->db->trans_status() === FALSE) { return $this->db->trans_rollback(); } else { return $this->db->trans_commit(); } } // penyusutan function store_penyusutan_simak($data = null) { $this->db2->trans_begin(); $this->db2->insert("tbl2_aset", $data); if ($this->db2->trans_status() === FALSE) { return $this->db2->trans_rollback(); } else { return $this->db2->trans_commit(); } } }