Пример:
Код: Выделить всё
public function createPolicy()
{
$rawPostData = file_get_contents('php://input');
$inputPost = $this->input->post('policy');
$this->applicationLogger->debug('DEBUG', 'Raw POST data: ', $rawPostData);
// it log valid json
$this->applicationLogger->debug('DEBUG', 'POST policy: ',json_encode($inputPost));
// it log null
}
Код: Выделить всё
let data = {
policy: this.policy
};
axios
.post('Controller/createPolicy', data, {
headers: {
'Content-Type': 'application/json'
}
})
Код: Выделить всё
RedirectMatch 404 /\.git
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/server-status
RewriteRule ^(.*)$ index.php/$1 [L]
Подробнее здесь: https://stackoverflow.com/questions/793 ... st-is-null
Мобильная версия