[Catalyst] auto() confusion [in 5.33]

Bill Moseley moseley at hank.org
Fri Nov 11 17:22:06 CET 2005


On Fri, Nov 11, 2005 at 03:31:18PM +0000, Chisel Wright wrote:
> I'm a tad confused with the arguments that get passed to auto().
> 
> sub list : Local {
>     my ($self, $c, $controller, $action, $client_id) = @_;
> 
> 	$c->stash->{template} = 'report/list.tt';
> }

You only are passed the arguments, not the controller and action.

When you access a default action then the arguments are the entire
path, not just the arguments.


-- 
Bill Moseley
moseley at hank.org




More information about the Catalyst mailing list