32 lines
580 B
PHP
32 lines
580 B
PHP
<?php
|
|
defined('BASEPATH') or exit('No direct script access allowed');
|
|
|
|
class ModelKategori extends CI_Model
|
|
{
|
|
|
|
|
|
/**
|
|
|
|
* @author Fendrik Nurul Jadid <fendrik1311@gmail.com>
|
|
|
|
* @since v.1.0
|
|
|
|
**/
|
|
|
|
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
//Codeigniter : Write Less Do More
|
|
}
|
|
|
|
public function get_data()
|
|
{
|
|
return $this->db->get_where("kategori")->result();
|
|
}
|
|
|
|
public function get_data_edit($id)
|
|
{
|
|
return $this->db->get_where("kategori", array("id_kategori" => $id))->row_array();
|
|
}
|
|
} |