[Catalyst] proper flow control with $c->foward, in search of greater grok

Bill Moseley moseley at hank.org
Fri Jan 8 15:34:26 GMT 2010


On Fri, Jan 8, 2010 at 6:55 AM, Tomas Doran <bobtfish at bobtfish.net> wrote:

>
>
>>
>> $c->response->redirect($c->uri_for("/user/$user_id/blog/$blog_id/entry/l=
ist"));
>>
>
> Eww, don't do that.
>
> You want
> $c->response->redirect($c->uri_for_action('/user/blog/entry/list',
> [$user_id, $blog_id]));
>

I agree that's the right approach, but not sure I see why the "Eww" in this
specific case.  Can you explain?



-- =

Bill Moseley
moseley at hank.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20100108/825ac=
b4a/attachment.htm


More information about the Catalyst mailing list