I need to call a php function with parameter from jQuery (DataTable), like above:
table = $('#tbl').DataTable({
"oLanguage": {
[...]
//"ajax" : "users/list",
//"data": {"id", "1"},
"ajax": {
"url": "users/list",
"data": {
"id": 1
}
},
[...]
});
php function (users.php):
function list($id){
[...]
}
Error message: Missing argument 1 for users::list()
users/list/1to actually feed the argument in your method thru URL