MKDoc::Core::Init - MKDoc Initialization Framework
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.
Sets all the variables, database connections, etc. before the query is executed.
Resets all the variables which look like $::MKD_<something> to undef.
Copyright 2003 - MKDoc Holdings Ltd.
Author: Jean-Michel Hiver
This module is free software and is distributed under the same license as Perl itself. Use it at your own risk.
L<Petal> TAL for perl MKDoc: http://www.mkdoc.com/
Help us open-source MKDoc. Join the mkdoc-modules mailing list:
mkdoc-modules@lists.webarch.co.uk
To install MKDoc::Core, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MKDoc::Core
CPAN shell
perl -MCPAN -e shell install MKDoc::Core
For more information on module installation, please visit the detailed CPAN module installation guide.