[Catalyst] Plugin methods and context namespace

John Wang johncwang at gmail.com
Fri Nov 25 05:27:19 CET 2005


On 11/24/05, Matt S Trout <dbix-class at trout.me.uk> wrote:
>
> On Thu, Nov 24, 2005 at 08:00:14PM -0800, John Wang wrote:
> > I think a plugin that handles email-based account activation and
> password
> > resets could be generally useful but I'm not sure how to do one cleanly
> ( i.e.
> > $c->myplugin->foo method formats and using the templating engine without
> > needing an empty Controller routine in the dispatcher).
>
> I don't see how providing a standard controller for you to subclass which
> makes its functionality available via ->forward to :Private actions is
> any less useful and re-usable than this - and doesn't clutter your $c
> namespace at all.


The standard controller idea does make sense now that I think about it some
more. I haven't noticed any specialized controllers to subclass on CPAN so I
was too fixated on making a plugin.

Thanks.

John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/catalyst/attachments/20051124/e840cf46/attachment-0001.htm


More information about the Catalyst mailing list