[Catalyst] using 'config' in a partpath

Ian Docherty ian at iandocherty.com
Thu Dec 21 16:40:00 GMT 2006


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?

Regards
IcyDee




More information about the Catalyst mailing list