[Catalyst] arguments to default methods
Sebastian Riedel
sri at oook.de
Wed Jun 22 13:17:05 CEST 2005
Am 22.06.2005 um 12:29 schrieb Perrin Harkins:
> The default private method isn't working quite like I expected.
>
> I have a class like this:
>
> package Poli::C::PetitionEditor;
>
> sub default : Private {
> my ( $self, $c, $method ) = @_;
> ...
> }
>
> I expected $method would contain "list" for the
> URL /petitioneditor/list, but it actually comes up empty.
default actions get all uri arguments.
sub default : Private {
my ( $self, $c, @args ) = @_;
# @args should be qw/petitioneditor list/
thats because default actions are inheritable...
--
sebastian
More information about the Catalyst
mailing list