MojoX::Dispatcher::Routes::Controller - Controller Base Class
use base 'MojoX::Dispatcher::Routes::Controller';
MojoX::Dispatcher::Routes::Controller is a controller base class.
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.
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.
Mojolicious, Mojolicious::Guides, http://mojolicious.org.
To install Mojolicious, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojolicious
CPAN shell
perl -MCPAN -e shell install Mojolicious
For more information on module installation, please visit the detailed CPAN module installation guide.