Two or more PathParts chained (Catalyst)

How can I have more than one pathpart in action at a time? I tried with Regex and LocalRegex, but it really does not work.

This is the result I want:

/typeone/*/*/something /typetwo/*/*/something 

I want to achieve this using only one basic action, which captures two arguments from and can have either a typeone or typetwo path.

"Something" is another action riveted to this base. I do not want to have two bases with two different paths, which would require that I have something chained to each of the bases, right?

thanks

+7
source share
2 answers

The common wisdom in the Catalyst community seems to be that chaining is always a better idea than regular expression matching today - to the extent that some regular expression elements can be moved from the kernel in version 6.

Do the examples here help? http://wiki.catalystframework.org/wiki/gettingstarted/howtos/chainedexamples.view
It seems that account/org/*/edit includes matching 3 separate PathParts ...

Each of the corresponding routines - those that are launched using typeone and typetwo, in your case - will be launched. Or is that not what you need?

+1
source

As far as I know, there is no way to install more than one PathPart or enable PathPart with regexp support.

-one
source

All Articles