My code is this, but in the php code I do not get the ref parameter ... What can it be?
$http({
method: 'POST',
url: '../assets/php/client/PHP.php',
data: {ref: 'dataTableLoad'}
}).then(function (response) {// on success
//alert(response.data);
console.log(response.data);
$('#dataTableTboody').html(response.data);},
function (response) {
console.log(response.data,response.status);
});
if (isset($_POST['ref']) && $_POST['ref'] != '') {
init($_POST['ref']);
} else {
$data['response'] = -1;
echo json_encode($data);
exit;
}