[Catalyst] Adding CaptureArgs for the whole controller?

David Schmidt davewood at gmx.at
Tue Apr 2 20:39:55 GMT 2013


By using one action that captures args and all other actions chain from.


something like this:
https://github.com/davewood/catalystx-resource/blob/master/lib/CatalystX/Resource/Controller/Resource.pm

On 2 April 2013 22:07, Alex Povolotsky <tarkhil at over.ru> wrote:
> Hello!
>
> I'm implementing some sort of simple CRM, and I'd like to handle a chain
> like
>
> /domain/*/service/*/edit with controller App::Controller::Domain::Service,
> not with App::Controller::Domain
>
> How can I set CaptureArgs for the whole App::Controller::Domain::Service?
> I'd like to handle captured arg somewhere in begin or auto
>
> Alex
>
>
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/



More information about the Catalyst mailing list