[Catalyst] Another RFC. $c->call()

Dominique Quatravaux dom at idealx.com
Fri Apr 14 11:33:11 CEST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Sebastian Riedel a écrit :

> What about:
>
> $c->action('/foo/bar')->forward; $c->action('/foo/bar')->detach;

I like this style a lot, but I would also like to be able to specify
the action by the name of a sub as we currently do (because of URL
I18N issues). Named arguments perhaps?

     $c->action(-url => '/foo/bar')->forward;
     $c->action(-method => 'bar')->detach;

I also feel like others on the list that the "forward" word is
ambiguous, and "detach" feels like a bad choice here as well (by
naively reading the source I am under the impression that the
"/foo/bar" URI is going to be unavailable after it is "detached"). So
what about this then:

     $c->action(-url => '/foo/bar')->call;
     $c->action(-method => 'bar')->dispatch;


- --
Dominique QUATRAVAUX                           Ingénieur senior
01 44 42 00 08                                 IDEALX

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFEP2xWMJAKAU3mjcsRAtkVAJ4xcFZznGe2HIcTFvzuM4RdS1o0pACgwgkE
zckFkJnlNq+1NxkWZFqO9vw=
=2zd5
-----END PGP SIGNATURE-----





More information about the Catalyst mailing list