I want to be able to create global functions, meaning a function I can use across controllers, kind of like helper methods.
So in one controller I could do
useful_function(string)
etc... Is this possible?
I did create a class in src/groovy called SiteHelper
, am I on the right track? I want the methods of the class SiteHelper
to be able to be used throughout controllers.