I have build several functions that I reuse in almost all of my controllers, at the moment I have to paste every function in every controller in order to work. The code looks really messy and it is quite difficult to make edists as I get lost in the lines.
How or where can I declare my functions so I can reuse them in all controllers witout pasting them there?