NAME

MKDoc::Core::Init - MKDoc Initialization Framework

SUMMARY

The MKDoc Initialization is done much like the way the plugins are processed, except that the initialization modules cannot interrupt the initialization chain unless they choose to die(), which triggers a 500 Internal Server Error.

Initialization modules which are registered in $ENV{SITE_DIR}/init are executed on each request within MKDoc::Init.

Under mod_perl, MKDoc::Core::Init runs as a PerlInitHandler.

Under mod_cgi, MKDoc::Core::Init runs before any plugin is invoked.

See MKDoc::Core::Init::Petal for an example of initialization module.

$class->init();

Sets all the variables, database connections, etc. before the query is executed.

$class->clean();

Resets all the variables which look like $::MKD_<something> to undef.

AUTHOR

Copyright 2003 - MKDoc Holdings Ltd.

Author: Jean-Michel Hiver <jhiver@mkdoc.com>

This module is free software and is distributed under the same license as Perl itself. Use it at your own risk.

SEE ALSO

Petal: http://search.cpan.org/author/JHIVER/Petal/
MKDoc: http://www.mkdoc.com/

Help us open-source MKDoc. Join the mkdoc-modules mailing list:

mkdoc-modules@lists.webarch.co.uk