Return to Snippet

Revision: 68024
at November 14, 2014 22:41 by shivrajgoa


Initial Code
<?php
class autocomplete extends CI_Controller{
    function __construct() {
        parent::__construct();
        $this->load->model('mautocomplete');
    }
    
    public function index(){
        $this->load->view('view_demo');
    }
    public function GetCountryName(){
        $keyword=$this->input->post('keyword');
        $data=$this->mautocomplete->GetRow($keyword);        
        echo json_encode($data);
    }
    
}
?>

Initial URL

                                

Initial Description
codeigniter autocomplete

Initial Title
Codeigniter-autocomplete-controller

Initial Tags
php, jquery, twitter, codeigniter

Initial Language
PHP