[Catalyst] Applying roles that contain actions.

Tomas Doran bobtfish at bobtfish.net
Fri Sep 7 18:50:25 GMT 2012

On 5 Sep 2012, at 21:48, Bill Moseley wrote:
> Currently I just manually apply the role directly in the existing controller, so not a huge issue, but would be handy if I could just add a role to the base class and pull in all the components

What's stopping you doing this?

There is no reason you can't have actions (from a role) in a base class..

Alternatively, if you want to switch things on and off from config, look at CatalystX::Component::Traits.


More information about the Catalyst mailing list