NAME

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

SYNOPSIS

minimvc-install MyApp

DESCRIPTION

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

INTERNAL DOCUMENTATION

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

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

DESCRIPTION

This controller handles the sample/ part of the website.

METHODS

default()

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

NAME

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

DESCRIPTION

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.