jen-c
10/11/2017 - 8:40 PM

codeigniter - ajax to library not controller

URL needs to be:
* url: '<?php echo base_url('My_commonlib/getcountry');?>',


First of you need to set your base url in config.php $config['base_url'] = 'http://localhost/projectname/'; not good idea url: 'http://[::1]/school/???????' use like url: "<?php echo base_url('controller/function');?>"