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

@@ -26,6 +26,12 @@ class ProdukModel extends CI_Model
return $produk = $this->db->get($this->_table)->row();
}
public function getThree(){
$this->db->order_by('id_produk', 'DESC');
$this->db->limit('3');
return $produk = $this->db->get($this->_table)->result();
}
public function getLastProdukByIdUmkm($id_umkm){
$this->db->where('id_umkm', $id_umkm);
$this->db->order_by('id_produk', 'DESC');