[Catalyst] Re: PathPrefix
Brian Cassidy
brian.cassidy at nald.ca
Tue Mar 13 17:43:50 GMT 2007
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
More information about the Catalyst
mailing list