[Catalyst] Re: Organizing link generators
Octavian Rasnita
orasnita at gmail.com
Fri Nov 12 21:18:12 GMT 2010
I was also confused and that's why I added the following small piece of documentation in Catalyst.pm:
""
Note that although the path looks like a URI that dispatches to the
wanted action, it is not a URI, but an internal path to that action.
For example, if the action looks like:
package MyApp::Controller::Users;
sub lst : Path('the-list') {}
You can use:
$c->uri_for_action('/users/lst')
and it will create the URI /users/the-list.
""
But just as Path::Class can also use dir('a', 'b', 'c') and dir('a/b/c'), uri_for_action could use the same syntax options...
Octavian
----- Original Message -----
From: "Aristotle Pagaltzis" <pagaltzis at gmx.de>
To: <catalyst at lists.scsys.co.uk>
Sent: Friday, November 12, 2010 7:37 PM
Subject: [Catalyst] Re: Organizing link generators
>* Alexander Hartmaier <alexander.hartmaier at t-systems.at> [2010-11-12 15:35]:
>> To me company, lot and vin in the url look like arguments, not
>> PathParts.
>
> That’s not how `uri_for_action` works.
>
> Regards,
> --
> Aristotle Pagaltzis // <http://plasmasturm.org/>
>
> _______________________________________________
> List: Catalyst at 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/
More information about the Catalyst
mailing list