Brian Kirkbride wrote:
Hello all,
I've been working with Chained actions, and like many others have found
them to be incredibly useful for setting up DBIC result sets before
reaching an endpoint.
The one thing that has been bothering me is that to start a chain in
some controller, say
Brian Kirkbride wrote:
Hello all,
The one thing that has been bothering me is that to start a chain in
some controller, say MyApp::C::Admin::Services you would need to declare:
sub get_id : Chained('/') : PathPart('/admin/services') :
CaptureArgs(1) {
# stash the id or do some lookup
Brian Cassidy wrote:
Perhaps you're looking for PathPrefix (coming to a new Catalyst near you
... eventually -- it's in svn now.). For now, do this:
sub _parse_PathPrefix_attr {
my ( $self, $c, $name, $value ) = @_;
return PathPart = $self-path_prefix;
}
sub get_id : Chained('/')