NAME
MT::Bootstrap
DESCRIPTION
Startup module used to simplify MT application CGIs.
SYNOPSIS
Movable Type CGI scripts should utilize the MT::Bootstrap
module to invoke the application code itself.
When run,
it is necessary to add the MT "lib" directory to the Perl include path.
Example (for CGIs in the main MT directory itself):
#!/usr/bin/perl -w use strict; use lib $ENV{MT_HOME} ? "$ENV{MT_HOME}/lib" : 'lib'; use MT::Bootstrap App => 'MT::App::CMS';
Example (for CGIs in a plugin subdirectory, ie MT/plugins/plugin_x):
#!/usr/bin/perl -w use strict; use lib "lib", ($ENV{MT_HOME} ? "$ENV{MT_HOME}/lib" : "../../lib"); use MT::Bootstrap App => 'MyApp';