umkm-app/application/models/JenisModel.php

20 lines
354 B
PHP
Raw Normal View History

2021-09-15 21:00:06 +07:00
<?php
class JenisModel extends CI_Model
{
private $_table = "tb_jenis";
public function getJenis(){
return $user = $this->db->get($this->_table)->result();
}
public function getJenisById($id_jenis){
$this->db->where('id_jenis', $id_jenis);
return $user = $this->db->get($this->_table)->row();
}
}