ajaxで新しいモジュールの関数を呼び出そうとしていますが、呼び出せません。「500内部サーバーエラー」が表示されますが、URLは正常です。
私のphpファイル(module.php)
class test extends Module{
function ajax_test(){
#do some stuff
}
}
私のajaxリクエスト
$.ajax({
type: "GET",
contentType: "application/json; charset=utf-8",
url: "module.php",
dataType: "json",
data : {},
success:
function(data){
}
});
何か案は?