javascript - No response data after call a function -
i have file called login.php , in file there box fill send login data server. when user press login button, code fired: var posturl = globalvariables.baseurl + 'application/controllers/user.php/ajax_check_login'; var postdata = { 'username': $('#username').val(), 'password': $('#password').val() }; $.post(posturl, postdata, function(response) { // stuff.. }, 'json'); the posturl valorized correctly by: http://localhost/app_name/application/controllers/user.php/ajax_check_login now have list of own controller allow me manage web app. 1 of controller user.php , how can see call ajax_check_login function. function check if data passed request exists in database , if correct. content: public function ajax_check_login() { echo "test?"; try { if(!isset($_post['username']) || !isset($_post['password'])) { throw new exception('ba...