enter
Modifies the current HTTP response headers.
Table of Contents
Description
This hook fires just before the headers are sent. Doing an echo
within this hook is highly discouraged, as it will interfere with the transmission of the response body.
Example
Hook::set('enter', function () {
header('x-foo: bar');
});
This hook is actually not that useful, because HTTP response headers can be modified at any point in the extension and layout files, as long as the very first echo
has not yet occurred.
body
Modifies the body part of the current HTML response.
content
Modifies the current HTML response.
enter
Modifies the current HTTP response headers.
exit
Fires after script execution ends.
get
Fires when the application is ready.
head
Modifies the head part of the current HTML response.
let
Fires when the application finishes rendering.
route
Sets the response body.
set
Fires when the application is ready.