[Catalyst] Helper classes shared across multiple controllers
- any recommendations?
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:
use base qw/Catalyst::Controller::BindLex
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 370 bytes
Desc: OpenPGP digital signature
Url : http://lists.scsys.co.uk/pipermail/catalyst/attachments/20071010/e000=
More information about the Catalyst