[Catalyst] Helper classes shared across multiple controllers - any recommendations?

Jonathan Rockway jon at jrock.us
Wed Oct 10 07:46:17 GMT 2007

Stefan K=FChn wrote:
> Yes, it looks nice.
> But could you also add controller specific functionality, like so?

Yes, you can.  In your example, you'll be able to hit
"/adaptor/method_A" (and B) in addition to the actions
defined in the superclass.

As an aside, Perl has multiple inheritance, so your controller can even
have multiple base classes.  You are probably used to this in the form of:

   package MyApp::Controller::SomeForm;
   use base qw/Catalyst::Controller::BindLex

Jonathan Rockway

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 370 bytes
Desc: OpenPGP digital signature
Url : http://lists.scsys.co.uk/pipermail/catalyst/attachments/20071010/e000=

More information about the Catalyst mailing list