[Catalyst] Question about Chained Controller

Larry Leszczynski larryl at emailplus.org
Mon Nov 15 16:13:50 GMT 2010


Hi Woosely Xu -

On Mon, 15 Nov 2010 10:32 +0800, "woosley. xu." <redicaps at gmail.com>
wrote:
> I am still wondering why forward dose not working in my way, and I
> just find detach('login') works good.

Because forward() returns to the action from which it was called, and
detach() does not:

   http://search.cpan.org/~bobtfish/Catalyst-Runtime-5.80029/lib/Catalyst.pm#REQUEST_FLOW_HANDLING

So even though you are forwarding to your login() method, upon return it
will continue processing your get() method.


HTH,
Larry



More information about the Catalyst mailing list