ACCEPT_CONTEXT
- That's tedious. Get a $self->context accessor:
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; ... }