[Catalyst] more thoughts on $c->foward

Tommy Butler ace at tommybutler.me
Wed Feb 17 13:54:54 GMT 2010

Tomas Doran wrote:
> [snip]
> Use an action role (Catalyst::Controller::ActionRole), or
> parameterised role (MX::Role::Parameterised) to apply method modifiers
> around the actions whose behavior you would like to decorate, rather
> than explicitly forwarding to the 'extra' code you'd like run with the
> action..
> e.g. sub foo :Does("MyAjaxShiz') { }
> Cheers
> t0m
Wanted to thank you for this.  It's going to help A LOT.

-- =

Tommy Butler
ace at tommybutler.me <mailto:ace at tommybutler.me>//
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20100217/12b35=

More information about the Catalyst mailing list