[Catalyst-dev] RFC: action_uri

Bogdan Lucaciu bogdan at wiz.ro
Mon Oct 2 13:33:09 CEST 2006


Hello

$c->uri_for($c->controller('Foo::Bar')->action_for('baz'), bla ) is used
a lot, and it's the correct way of specifying an URI for a certain
action.

Would this alternative syntax be acceptable:
$c->action_uri('Foo::Bar->baz', bla); ?


I also thought of: $c->uri_for([qw/Foo::Bar, baz/], bla);
but action_uri seems cleaner.

Better naming suggestions are welcome :)
I will prepare the patch according to your feedback.

Thanks,
-- 
Bogdan Lucaciu




More information about the Catalyst-dev mailing list