[Catalyst] using 'config' in a partpath
Ash Berlin
ash at cpan.org
Thu Dec 21 21:58:39 GMT 2006
Ian Docherty wrote:
> if I want a URI like
>
> /config/34/display
>
> Then I can create a PartPath similar to:-
>
> package MyApp::Controller::Config;
>
> use strict;
> use warnings;
>
> use base 'Catalyst::Controller';
>
> sub Config : PartPath('/config') Chained('/') CaptureArgs(1) {
> my ($self, $c, $config_id) = @_;
> # do something
> }
>
> But actually I can't, because this example gives me a URI of
>
> /Config/32/display
>
> (note the uppercase 'C')
> because if I try to use lowercase 'config' it conflicts with
> Catalyst::Controller::config
>
> Any ideas on how I can have a lower-case 'config/32/xxx' in my PartPath?
By using PathPart instead ;)
More information about the Catalyst
mailing list