Mojolicious::Controller(3p)

NAME
Mojolicious::Controller - Controller Base Class

SYNOPSIS
    use base 'Mojolicious::Controller';

DESCRIPTION
Mojolicous::Controller is a controller base class.

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

  "app"
    my $app = $controller->app;

  "render"
    $controller->render;
    $controller->render(action => 'foo');

  "req"
    my $req = $controller->req;

  "res"
    my $res = $controller->res;

  "stash"
    my $stash   = $controller->stash;
    my $foo     = $controller->stash('foo');
    $controller = $controller->stash({foo => 'bar'});
    $controller = $controller->stash(foo => 'bar');