<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Mscorps extends Back_end {

    public $model = 'model_master_corps';

    public function __construct() {
        parent::__construct('kelola_pustaka_corps', 'Pustaka corps');
    }

    public function index() {
        parent::index();
        $this->set("bread_crumb", array(
            "#" => $this->_header_title
        ));
    }

    public function detail($id = FALSE) {
        parent::detail($id, array(
            "kode_corps","init_corps","ur_corps",
        ));

        $this->set("bread_crumb", array(
            "back_end/" . $this->_name => $this->_header_title,
            "#" => 'Pendaftaran ' . $this->_header_title
        ));
//        $this->add_jsfiles(array("avant/plugins/form-jasnyupload/fileinput.min.js"));
    }
    
    public function get_like() {
        $keyword = $this->input->post("keyword");

        $corps_found = $this->model_ref_corps->get_like($keyword);
        
        $this->to_json($corps_found);
    }
}
<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Mscorps extends Back_end {

    public $model = 'model_master_corps';

    public function __construct() {
        parent::__construct('kelola_pustaka_corps', 'Pustaka corps');
    }

    public function index() {
        parent::index();
        $this->set("bread_crumb", array(
            "#" => $this->_header_title
        ));
    }

    public function detail($id = FALSE) {
        parent::detail($id, array("kode_corps",
            "init_corps",
            "ur_corps",));

        $this->set("bread_crumb", array(
            "back_end/" . $this->_name => $this->_header_title,
            "#" => 'Pendaftaran ' . $this->_header_title
        ));
//        $this->add_jsfiles(array("avant/plugins/form-jasnyupload/fileinput.min.js"));
    }

    public function get_like() {
        $keyword = $this->input->post("keyword");

        $corps_found = $this->model_master_corps->get_like($keyword);

        $this->to_json($corps_found);
    }

}

Update Master Corps - Index
Update Master Corps - Index