Catalyst Improving your Catalyst Application #39

ACCEPT_CONTEXT

package Some::Controller;
use base qw/Catalyst::Component::ACCEPT_CONTEXT Catalyst::Controller/;

sub foo :Action {
    my ($self, $c) = @_;
    $self->helper;
    $self->another_helper;
    ...
}

sub helper { my ($self) = @_; my $c = $self->context; ... }
Infinity Interactive