Robert 'phaylon' Sedlacek wrote:
You can chain your action only to other actions or to the root, not to namespaces. The PathPart attribute controls how the path is built visibly. There is a :PathPrefix implementation that does what you want somewhere in Catalyst's SVN, but I don't know when it is expected to go to CPAN.

The code is pretty simple -- just put this in your base controller:

sub _parse_PathPrefix_attr {
    my ( $self, $c, $name, $value ) = @_;
    return PathPart => $self->path_prefix;
}

-Brian

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

Reply via email to