[Catalyst] Re: Handy shotcuts
Aristotle Pagaltzis
pagaltzis at gmx.de
Thu Mar 20 12:42:06 GMT 2008
* Alex Povolotsky <tarkhil at over.ru> [2008-03-20 11:25]:
> +sub uri_redirect {
> + my ($c, $path) = @_;
> + return $c->response->redirect($c->uri_for($path));
> +}
But `uri_for` can take a lot more parameters than just one;
there’s no reason you have to restrict your utility methods
to the first one.
Regards,
--
Aristotle Pagaltzis // <http://plasmasturm.org/>
More information about the Catalyst
mailing list