I am trying an ajax call in CodeIgniter but confused how to write controller and its function name in url.
$.ajax({
type : "POST",
url : "<?php echo base_uri(); ?>/application/controllers/controllerName/FunctionName",
});
Here I am writing the whole path but it doesn't seem right. Is this ok or is there a better way? Thanks in advance.