MasonX::MiniMVC::Installer - Install a MiniMVC webapp


MasonX-MiniMVC documentation  | view source Contained in the MasonX-MiniMVC distribution.

Index


NAME

Top

MasonX::MiniMVC::Installer -- Install a MiniMVC webapp

SYNOPSIS

Top

    minimvc-install MyApp

DESCRIPTION

Top

This module shouldn't be used directly. Use the minimvc-install script instead.

INTERNAL DOCUMENTATION

Top

install()

Install a new stub application.

check_app_name()

Checks that the application name supplied on the command line looks like a Perl application name, i.e. matches \w+. Dies if it's not OK.

check_empty_dir

Checks that the current directory is empty before installing MiniMVC. Dies if it's not.

build_dir_structure()

Builds the directory structure for the application, i.e. lib/, t/, etc.

write_stub_files()

Writes stub files for the application, i.e. autohandler, dhandler, sample controllers, etc.

NAME

Top

${app_name}::Controller::Sample -- Sample MiniMVC controller

DESCRIPTION

Top

This controller handles the sample/ part of the website.

METHODS

Top

default()

This is called when someone goes to http://example.com/sample/

NAME

Top

${app_name}::Model::Sample -- Sample MiniMVC model

DESCRIPTION

Top

This is a stub model class for your MiniMVC application. You could use DBIx::Class, Class::DBI, or some other method to represent your data here in an OO way.

You would then use ${app_name}::Model::Whatever from within your Controller classes to access data.


MasonX-MiniMVC documentation  | view source Contained in the MasonX-MiniMVC distribution.