Table of Contents
- modify the HTTP headers sent by Dokuwiki
- output all the headers in order using the header() function
This event is signalled by act_dispatch() in inc/actions.php after preparing the headers and before loading the template.
The passed Doku_Event object has the fields:
$data field is an array of header strings. This array has default one entry:
- the DokuWiki header
'Content-Type: text/html; charset=utf-8'.
The BEFORE handler of this event can add/modify/delete the headers in the
$data field. The event data must remain an array, even if emptied. The default action act_sendheaders() will output the headers, but this can be prevented by
$result field is always null, because the default action don't set this field. The AFTER event handlers comes (default) after outputting the headers.
- Code related to this event used in any DokuWiki's files, plugins and templates
devel/event/action_headers_send.txt · Last modified: 2018-12-08 14:53 by torpedo