javascript - Codeigniter AJAX request to custom folder -


i created new folder in application directory called scripts.

the path folder [::1]/development/application/scripts/. make ajax requests script files in folder.

here request:

$.ajax({     type: "get",     url: "<?=site_url('application/scripts/center_contacts_server_processing.php')?>",     success: function(resp) {         console.log(resp)     } }); console.log("<?=site_url('application/scripts/center_contacts_server_processing.php')?>"); 

center_contacts_server_processing.php

<?php     echo 'hi'; ?> 

and output:

http://[::1]/development/application/scripts/center_contacts_server_processing.php http://[::1]/development/application/scripts/center_contacts_server_processing.php 403 (forbidden) 

note: use ajax around site call controllers.


Comments