It's better when it's simple

User Tools

Site Tools



DokuWiki prepares to do its work

The event is signalled after Dokuwiki has completed its initialization phase and before it closes the session in doku.php. Most Dokuwiki globals will have been created and populated, the global $_SESSION var will still be in existence.

This is only true for the main DokuWiki template, i.e. whatever comes through doku.php. The mediamanager popup uses MEDIAMANAGER_STARTED instead (comes through lib/exe/mediamanager.php) and the image detail page uses DETAIL_STARTED.

The DOKUWIKI_INIT_DONE event provides an alternative that will fire for all entry points that use the DokuWiki environment.

If you need an even earlier event, check out INIT_LANG_LOAD, but note that not the whole environment is setup there. You could also check out AUTH_LOGIN_CHECK, but again, the whole environment is NOT setup there.

Note: Even after $_SESSION has been closed a plugin can reopen the session to access session data - as long as headers have not already been sent. For an example of this refer to lib/plugins/config/admin.php.

Passed Data

No data is passed.

See also

devel/event/dokuwiki_started.txt · Last modified: 2022-04-28 09:16 by andi

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki