Beispiel:
Code: Select all
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
}
Code: Select all
let data = {
policy: this.policy
};
axios
.post('Controller/createPolicy', data, {
headers: {
'Content-Type': 'application/json'
}
})
Code: Select all
RedirectMatch 404 /\.git
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/server-status
RewriteRule ^(.*)$ index.php/$1 [L]