The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

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 inherits all attributes from MojoX::Session::Cookie::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::Session::Cookie::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::Guides, http://mojolicious.org.