MPMinus
view release on metacpan or search on metacpan
lib/MPMinus/Manual.pod view on Meta::CPAN
Returns HTTP current request method
Default: GET
=item B<request_uri>
my $path_string = $m->conf("request_uri");
Returns path-string of current HTTP request
Default: /
Example: /mpminfo
=item B<sid>
my $sid = $m->conf("sid"); # 802a28bffa20f4dc
Returns SessionID, 16 hex random characters, session signature
=back
=head2 DEPRECATED PARAMETERS
Following list contains deprecated and actually not existing parameters and directives.
=over 8
=item Flags
_debug_, _errorsendmail_, _sendmail_, _syslog_
=item Files and directories
file_connect, file_debug, file_error, file_mail, file_mpminfo,
dir_cache, dir_conf, dir_db, dir_logs, dir_shtml
=item Misc
errorlog, debuglog, url_shtml, urls, urls_shtml
=back
All listed parameters now are prohibited to use.
=head2 USER DEFINED MPMINUS PARAMETERS
All .conf files of current project contains only user directives.
The value of each directive of configuration files can be read or
modified using getters and setters
=head3 MULTISTORE CONFIGURATION
The following construction is used to configure the Multistore mechanism:
<store foo>
dsn DBI:mysql:database=TEST;host=192.168.1.1
user login
pass password
<Attr>
mysql_enable_utf8 1
RaiseError 0
PrintError 0
</Attr>
</store>
<store bar>
dsn DBI:Oracle:FOOSID
user login
pass password
<Attr>
RaiseError 0
PrintError 0
</Attr>
</store>
<store baz>
dsn DBI:Oracle:BARSID
user login
pass password
<Attr>
RaiseError 0
PrintError 0
</Attr>
</store>
The accessor methods detailed described in L<MPMinus::Store::MultiStore/EXAMPLE> example
=head1 API
A classic example of a site created with MPMinus contains 5 mandatory files:
MPM/MyApp.pm
MPM/MyApp/Handlers.pm
MPM/MyApp/Index.pm
MPM/MyApp/Info.pm
MPM/MyApp/Root.pm
For example see C<eg/MPM/MyApp.pm> file(s)
=over 8
=item B<MyApp.pm>
Your POD documentation file. Contains also the projects version and any meta-info
of Your project. Usually does not contain any program code.
=item B<Handlers.pm>
The first and very important file of Your project!
The file contains handler-definition for mod_perl2
See C<eg/MPM/MyApp/Handlers.pm> file for example
=item B<Index.pm>
The file contains list of enabled (plugged) modules of Your project.
By default enabled Root and Info modules only. For examle:
use base qw/
MPM::MyApp::Root
MPM::MyApp::Info
/;
( run in 0.735 second using v1.01-cache-2.11-cpan-39bf76dae61 )