[Catalyst-dev] uri_for_action

Ash Berlin ash_cpan at firemirror.com
Mon Mar 30 20:26:07 BST 2009


On 28 Mar 2009, at 04:51, Hans Dieter Pearcey wrote:

> <@confound> I really want $c->uri_for_action('/private/path',  
> @other_stuff)
> <@confound> that is EXACTLY LIKE uri_for except it runs $c- 
> >dispatcher->get_action_by_whatever on the first argument
> <@confound> I find myself writing that over and over.
> <@confound> Also I want captures and args to be a single argument
> <@confound> AND A PONY
> <@mst> confound: I want that too
> <@mst> nobody seems to care enough to write it
>
> I've created the 'uri_for_action' branch off 5.80 that implements  
> the first two
> lines of this quote.  'captures and args together' and 'A PONY' will  
> have to
> wait until later.
>
> opinions?  (in particular, mst, let me know if this isn't actually  
> what you
> were talking about wanting.)
>
> hdp.

What's the behaviour when you dont provide enough @other_stuff, or if  
you provide too much @other_stuff for the combined CaptureArgs+Args?

It should be die rather than return undef/invalid url.

-ash



More information about the Catalyst-dev mailing list