Public landing page done

This commit is contained in:
2021-09-21 15:19:35 +07:00
parent ef7a10356f
commit 5e94f90ac1
17 changed files with 3385 additions and 239 deletions

View File

@@ -25,10 +25,19 @@ class ProdukModel extends CI_Model
$this->db->where('id_produk', $id_produk);
return $produk = $this->db->get($this->_table)->row();
}
public function getProduk(){
$this->db->join('tb_umkm','tb_umkm.id_umkm = tb_produk.id_umkm');
return $produk = $this->db->get($this->_table)->result();
}
public function getProdukCount(){
return $produk = count($this->db->get($this->_table)->result());
}
public function getThree(){
$this->db->order_by('id_produk', 'DESC');
$this->db->limit('3');
$this->db->limit('6');
return $produk = $this->db->get($this->_table)->result();
}

View File

@@ -79,7 +79,7 @@ class UmkmModel extends CI_Model
public function getThree(){
$this->db->order_by('id_umkm', 'DESC');
$this->db->limit('3');
$this->db->limit('4');
return $umkm = $this->db->get($this->_table)->result();
}