Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Kategori extends CI_Controller{
- function __construct(){
- parent::__construct();
- $this->load->model('m_kategori');
- }
- function index(){
- $x['data']=$this->m_kategori->get_kategori();
- $this->load->view('v_kategori',$x);
- }
- function get_subkategori(){
- $id=$this->input->post('id');
- $data=$this->m_kategori->get_subkategori($id);
- echo json_encode($data);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement