[Catalyst] Dynamically adding ActionClass
John Napiorkowski
jjn1056 at yahoo.com
Sat Oct 7 00:59:35 CEST 2006
--- Brian Kirkbride
<brian.kirkbride at deeperbydesign.com> wrote:
> 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? :)
The post_auto in principle seems like a good idea, if
only for completeness sake, but since I wouldn't know
how to write it I should really say anything :)
--john
>
> Best,
> Brian Kirkbride
>
> _______________________________________________
> List: Catalyst at lists.rawmode.org
> Listinfo:
> http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive:
>
http://www.mail-archive.com/[email protected]/
> Dev site: http://dev.catalyst.perl.org/
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the Catalyst
mailing list