Re: [Catalyst] Questions about chained actions, endpoints, etc.

2007-03-22 Thread Robert 'phaylon' Sedlacek
Doran L. Barton wrote: The part I was not understanding was that the argument to the Chained() action is the private path name: Well, I thought the sentence Possible values are absolute and relative private action paths[...] in Catalyst::DispatchType::Chained POD for the 'Chained' attribute

[Catalyst] Questions about chained actions, endpoints, etc.

2007-03-21 Thread Doran L. Barton
Hey guys, this very well may be due purely to my lack of experience in this matter, but I'm having trouble getting chained actions working the way I WANT them to work and I'm suspicious the way I want them to work is not the way they're intended to work. Here's the situation: I want the

Re: [Catalyst] Questions about chained actions, endpoints, etc.

2007-03-21 Thread Danny Warren
This is the same layout I have for my chained actions, and I went through the same huh? phase as well. You seem to be on the right track so far. Here is a quick copy / paste / hack job of my layout adapted to your examples. Won't go in to too much detail since I am busy at work, so let me

Re: [Catalyst] Questions about chained actions, endpoints, etc.

2007-03-21 Thread Danny Warren
A couple of clarifications: 1) I typo'd 'sub sub' below in the 'add' action, whoops! 2) In my example, I should have used 'detail' as the action instead of 'view', to match your layout ('view' is what I use). 3) I think the general confusion on all of this, and I didn't wrap my head around

Re: [Catalyst] Questions about chained actions, endpoints, etc.

2007-03-21 Thread Doran L. Barton
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) {...}

Re: [Catalyst] Questions about chained actions, endpoints, etc.

2007-03-21 Thread Danny Warren
Now try combining all that with using Chained('.') to spread the chain across controllers! (Which is really damned cool, and I use it to split out my model relations in to chained controllers and actions with and get clean uris). Hint on how to do this (since I see that come up a lot on the