I try to create example extjs app using thishttps://docs.sencha.com/extjs/6.5.1/...mysql_php.html guide. And I still getting this error:
Przechwytywanie1.PNG
'Invalid request' is from line 29 in router.php, but I can figured out why it cant find extAction.
Code:
if (isset($HTTP_RAW_POST_DATA)) {
header('Content-Type: text/javascript');
$data = json_decode($HTTP_RAW_POST_DATA);
}
else if(isset($_POST['extAction'])){ // form post
$isForm = true;
$isUpload = $_POST['extUpload'] == 'true';
$data = new BogusAction();
$data->action = $_POST['extAction'];
$data->method = $_POST['extMethod'];
$data->tid = isset($_POST['extTID']) ? $_POST['extTID'] : null;
$data->data = array($_POST, $_FILES);
}
else {
die('Invalid request.');
}