21 lines
466 B
PHP
21 lines
466 B
PHP
<?php
|
|
defined('BASEPATH') or exit('No direct script access allowed');
|
|
|
|
class ModelAKG extends CI_Model
|
|
{
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
//Codeigniter : Write Less Do More
|
|
}
|
|
|
|
public function get_data()
|
|
{
|
|
return $this->db->get_where("kalori")->result();
|
|
}
|
|
|
|
public function get_data_edit($id)
|
|
{
|
|
return $this->db->get_where("kalori", array("id_kalori" => $id))->row_array();
|
|
}
|
|
} |