[Catalyst] Problem with the order of action

José Castro cogurov at gmail.com
Tue Dec 9 15:39:11 GMT 2008


Let's say I have (and I do) something like this in one controller:

    sub create : Path('/users/new') {

and something like this in another controller:

    sub attribute : Regex('^([^/]+)/([^/]+)(?:/page/(\d+))?$') {

My goal here is to try to match the url with /users/new and, that failing,
try matching with that regex up there.

My problem, as many of you will have figured out, if that /users/new is
bumping into the attribute sub (which makes sense, as it does match the

Is there any way of tampering with the order the methods in the controllers
are tried? (other than changing the names of the controllers, hopefully)



-- =

Jos=E9 Castro
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20081209/3d2cc=

More information about the Catalyst mailing list