Public landing page done
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user