First Commit
This commit is contained in:
21
application/models/KelurahanModel.php
Normal file
21
application/models/KelurahanModel.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
class KelurahanModel extends CI_Model
|
||||
{
|
||||
private $_table = "tb_kelurahan";
|
||||
|
||||
|
||||
public function getKelurahan(){
|
||||
$this->db->order_by('kelurahan', 'ASC');
|
||||
return $user = $this->db->get($this->_table)->result();
|
||||
}
|
||||
|
||||
public function getKecamatanByKelurahan($kelurahan){
|
||||
$this->db->where('kelurahan', $kelurahan);
|
||||
return $user = $this->db->get($this->_table)->row();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user