[Catalyst] another newbie chaining question
Matt S Trout
dbix-class at trout.me.uk
Thu Sep 7 20:03:41 CEST 2006
John Napiorkowski wrote:
> Ah, I see.
>
> I was able to get what I wanted via:
>
> $c->uri_for( $c->controller->action_for('list'),
> $c->request->captures );
>
> It's isn't quite as nice since I'm trying to write
> something generic for a pager view and I want to avoid
> as much possible hard coded stuff from the controller.
>
>
> After looking at the $c->dispatcher->uri_for_action
> method I can see why this happens, since as you say
> the action chain hasn't been dispatched, right?
Nothing to do with whether the action chain has been dispatched.
The point is that Chained makes a distinction between "chain parts"
(w/CaptureArgs) and "chain endpoints" (w/Args) - they're two distinct things
and only an endpoint is capable of being the last thing in a complete chain so
only an endpoint can ever have a URI.
--
Matt S Trout Offering custom development, consultancy and support
Technical Director contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd. mst (at) shadowcatsystems.co.uk for more information
+ Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +
More information about the Catalyst
mailing list