add publick landing page

This commit is contained in:
2021-09-20 17:51:31 +07:00
parent b42ee3ba25
commit ef7a10356f
18 changed files with 302 additions and 1 deletions

View File

@@ -77,6 +77,11 @@ class UmkmModel extends CI_Model
return $umkm = $this->db->get($this->_table)->row();
}
public function getThree(){
$this->db->order_by('id_umkm', 'DESC');
$this->db->limit('3');
return $umkm = $this->db->get($this->_table)->result();
}
public function getUmkmCountByUserId($id_pemilik){
$this->db->where('id_pemilik', $id_pemilik);