Re: [Catalyst] How to make chained actions nice?

2007-04-09 Thread Robert 'phaylon' Sedlacek
Danny Warren wrote: > # Responds to /object/list > sub list : Local { ... } > > # Captures object id, as in /object/[OBJ_ID] > sub object : PathPart('object') Chained CaptureArgs(1) { ... } > > # Responds to /object/[OBJ_ID]/edit > sub edit : Chained('object') Args(0) { ... } > > # Chain point

Re: [Catalyst] How to make chained actions nice?

2007-04-08 Thread Oleg Pronin
Hm... Thanks for your idea! i got it. 2007/4/8, Danny Warren <[EMAIL PROTECTED]>: The Chained('.') parameter is used for chaining across controllers. I understand your URI layout from your comments, but I don't understand what you are trying to do with all those weird Chained params you are us

Re: [Catalyst] How to make chained actions nice?

2007-04-07 Thread Danny Warren
The Chained('.') parameter is used for chaining across controllers. I understand your URI layout from your comments, but I don't understand what you are trying to do with all those weird Chained params you are using. Here is how I would lay it out. Read the perldoc again, it took me a few re

[Catalyst] How to make chained actions nice?

2007-04-07 Thread Oleg Pronin
Greetings. I've got some kind of problem using chained actions. There are some objects. Each object has a number of properties. And this is how i want it to be: URL for a list of objects is /object/list URL for editing object is /object/OBJ_ID/edit (through chained action) URL for list of ob