[Catalyst] Private Chained Actions?

Marc Sebastian Pelzer marc at knusperfisch.de
Fri Jun 20 13:00:35 BST 2008


I'd like to forward and/or detach to private actions which should be  
chained together, like:

sub hello_setup : Privat Chained {
   my ($self, $c) = @_

   $c->stash->{setup} = 'done';

sub hello : Private Chained('hello_setup') {
   my ($self, $c) = @_

   $c->res->body('hello! setup is ' . $c->stash->{setup});

sub index : Path : Args(0) {
   my ($self, $c) = @_


This does actually not work. Only hello() is being called.

Has anyone an idea, how to make this work? Or is this just not  
supported (yet)?

Thanks, Marc :)

More information about the Catalyst mailing list