This is some basic documentation on how the Winter CMS AJAX framework currently works.
Name | Purpose | Values |
---|---|---|
X-Requested-With |
Tells Winter/Laravel/Symfony that the request is an "AJAX Request". | XMLHttpRequest |
X-WINTER-REQUEST-HANDLER |
Tells Winter which AJAX handler method to use on the controller/component. modules/backend/classes/Controller.php#L435 | Component handler: component::onEvent ; Generic handler: onEvent (Note: the onAjax handler name will always return null) |