Hi Woosely Xu -

On Mon, 15 Nov 2010 10:32 +0800, "woosley. xu." <redic...@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

_______________________________________________
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/

Reply via email to