[Catalyst] redirection hint?

Andy Grundman andy at hybridized.org
Wed Jan 4 20:40:03 CET 2006


Joe Landman wrote:
> They both fail ($c->detach('/admin/user/list') and 
> $c->forward('/admin/user/list')) with an
> 
> [Wed Jan  4 17:03:21 2006] [catalyst] [debug] Couldn't forward to 
> command "/admin/user/list". Invalid action or component
> 
> I have a
> 
>     sub main : LocalRegex('^user/(add|delete|update|list|search)') {
>     # ...
>     }
> 
> in the admin controller body, so I thought that the path to this will be 
> /admin/user/list

You might really want $c->res->redirect( '/admin/user/list' );

forward and detach take a private action name:

$c->detach( '/admin/main' );

-Andy



More information about the Catalyst mailing list