[Catalyst] Questions about chained actions, endpoints, etc.
Doran L. Barton
fozz at iodynamics.com
Wed Mar 21 22:14:21 GMT 2007
Danny,
Thanks for your reply. I finally had that epiphany right before your
message came through.
The part I was not understanding was that the argument to the Chained()
action is the private path name:
# Handles /admin/*
sub book_detail : PathPart('admin') Chained('/') Args(1) {...}
# Handler 1 of 2 for /admin/*/{edit,delete}
sub book_link : PathPart('admin') Chained('/') CaptureArgs(1) {...}
sub edit : PathPart Chained('book_detail') Args(0) {...}
I wasn't grasping that "minor detail" that the edit() function needed to be
sub edit : PathPart Chained('admin') Args(0) {...}
Thanks! Now on to the next brick wall. :)
-=Fozz
--
fozz at iodynamics.com is Doran L. Barton, president/CTO, Iodynamics LLC
Iodynamics: IT and Web services by Linux/Open Source specialists
"This evening at 7 P.M. there will be a hymn sing in the park across from
the Church. Bring a blanket and come prepared to sin."
-- Seen in a church bulletin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.scsys.co.uk/pipermail/catalyst/attachments/20070321/07b949fb/attachment.pgp
More information about the Catalyst
mailing list