First Commit
This commit is contained in:
13
application/models/LaporanModel.php
Normal file
13
application/models/LaporanModel.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
class LaporanModel extends CI_Model
|
||||
{
|
||||
private $_table = "tb_laporan";
|
||||
|
||||
public function getLaporanCountByYear($tahun){
|
||||
$this->db->where('tahun',$tahun);
|
||||
return $laporan = count($this->db->get($this->_table)->result());
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user