Where should I place functions like, for example, sum_it_all()
in Catalyst project?
It's not a model, that's nothing about data, it's not a controller because it doesn't ask the web-request. It's just a simple function and I want it to be accessible in all my controllers.
Now I use Model/Utils.pm and $c->model("utils")->sum_it_all()
, but it seems to be really ridiculous.