NAME

MojoX::Dispatcher::Routes::Controller - Controller Base Class

SYNOPSIS

    use base 'MojoX::Dispatcher::Routes::Controller';

DESCRIPTION

MojoX::Dispatcher::Routes::Controller is a controller base class.

ATTRIBUTES

MojoX::Dispatcher::Routes::Controller implements the following attributes.

match

    my $m = $c->match;

A MojoX::Routes::Match object containing the routes results for the current request.

METHODS

MojoX::Dispatcher::Routes::Controller inherits all methods from MojoX::Controller and implements the following new ones.

param

    my $param  = $c->param('foo');
    my @params = $c->param('foo');

Request parameters and routes captures.

SEE ALSO

Mojolicious, Mojolicious::Book, http://mojolicious.org.