[Catalyst] How to avoid repeating methods in controllers ?
cc loo
mobile.ccloo at gmail.com
Wed Jul 17 02:05:30 GMT 2013
Hi all, i'm a network engineer by trade and is picking up perl/catalyst to
upgrade my skills :)
I have a couple of controllers each having same methods, chaining off their
respective 'base' methods.
I build my controllers off this guide here:
http://search.cpan.org/~ether/Catalyst-Manual-5.9007/lib/Catalyst/Manual/Tu=
torial/04_BasicCRUD.pod#Refactor_to_Use_a_'base'_Method_to_Start_the_Chains
So, i have
controller_a with a method 'list' , chaining off 'base'
controller_b with a method 'list', chaining off' 'base'
Is there a more graceful manner of inheriting this method instead of
copy/paste on every controller i have ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20130717/b7ae6=
59f/attachment.htm
More information about the Catalyst
mailing list