stupid question where in coldbox would you add a f...
# cfml-beginners
r
stupid question where in coldbox would you add a function that would be visible in your view thats global for instance i want to create a function that replaces spaces with hyphens for a url public string function makeUrl(url) { replace bit here return url; } where would you store this?
a
I would store that ColdBox question in the #box-products channel, for a start 😉
😆 1
🤣 1
g
Store the function in a handler file maybe a gateway or service.cfc file You can declare the path of gateway and service files in application.cfc and then add your functions in those files and start using it
🙏 1
😅 1