[Catalyst] Dynamically adding ActionClass

Brian Kirkbride brian.kirkbride at deeperbydesign.com
Fri Oct 6 21:19:29 CEST 2006


Juan Camacho wrote:
> I have an existing catalyst plugin where I would like to set a stash
> item after the Controller is called but before the View is executed.
> One way of doing this is by simply creating a custom ActionClass that
> sets the stash item.  Is there a way to dynamically add an ActionClass
> from within the plugin code? I want to avoid adding instructions for
> existing plugin users to write "sub foo : ActionClass('Bar')" in their
> controllers, and breaking backward compatability.
> 
> Besides the ActionClass approach is there another way to do this?
> 
> Juan
> 


This might be another case that would benefit from the "end-time auto" feature 
that has been discussed before.  Since we have begin/end, I would favor an 
auto/post_auto as well.  Any better name suggestions? :)

Best,
Brian Kirkbride



More information about the Catalyst mailing list