[Catalyst] KISS - Base Subroutines.

Eden Cardim e.cardim at shadowcat.co.uk
Fri Jul 15 13:31:54 GMT 2016


"Andrew" <catalystgroup at unitedgames.co.uk> writes:

> Is there a keep it simple stupid answer to the following question:
>
> Put a subroutine in a separate place, where it can be accessed / called, by
> whatever controllers need to use it?

Create MyApp::Model::Whatever then $c->model('Whatever')->subroutine



More information about the Catalyst mailing list