MPMinus

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

    request_method

          my $request_method = $m->conf("request_method");

      Returns HTTP current request method

      Default: GET

    request_uri

          my $path_string = $m->conf("request_uri");

      Returns path-string of current HTTP request

      Default: /

      Example: /mpminfo

    sid

          my $sid = $m->conf("sid"); # 802a28bffa20f4dc

      Returns SessionID, 16 hex random characters, session signature

 DEPRECATED PARAMETERS

    Following list contains deprecated and actually not existing parameters
    and directives.

    Flags

          _debug_, _errorsendmail_, _sendmail_, _syslog_

    Files and directories

          file_connect, file_debug, file_error, file_mail, file_mpminfo,
          dir_cache, dir_conf, dir_db, dir_logs, dir_shtml

    Misc

          errorlog, debuglog, url_shtml, urls, urls_shtml

    All listed parameters now are prohibited to use.

 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

  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 "EXAMPLE" in
    MPMinus::Store::MultiStore example

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 eg/MPM/MyApp.pm file(s)

    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.

    Handlers.pm

      The first and very important file of Your project! The file contains
      handler-definition for mod_perl2

      See eg/MPM/MyApp/Handlers.pm file for example

    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 1.770 second using v1.01-cache-2.11-cpan-5837b0d9d2c )