[Catalyst] chained requests

Trevor Leffler tleffler at uw.edu
Tue Nov 7 20:36:36 GMT 2017

Hi Theo,

I hope that these resources on chained action methods will help you get started:

From the Catalyst Manual…

Examples from the Catalyst wiki…

A Catalyst advent calendar entry…

Here is a code snippet that could work for your case…

# see also ChainedParent for non-Root controllers
sub base : Chained(‘/’) PathPart(‘test’) CaptureArgs(1) {
  my ($self, $c, $product_id) = @_;
  # do something with $product_id

sub create : Chained(‘base’) PathPart(‘create’) Args(0) {
  my ($self, $c) = @_;


From: catalyst-bounces at lists.scsys.co.uk [mailto:catalyst-bounces at lists.scsys.co.uk] On Behalf Of Theo Bot
Sent: Friday, November 3, 2017 7:52 AM
To: The elegant MVC web framework <catalyst at lists.scsys.co.uk>
Subject: [Catalyst] chained requests

How do I create a single controller, that would be able to handle the following requests

Kind regards,

Theo Bot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scsys.co.uk/pipermail/catalyst/attachments/20171107/4507e73b/attachment.htm>

More information about the Catalyst mailing list