getSettingStructure alternative

Hi there, since getSettingStructure is removed in v6, is there an alternative way to get to all settings? We have too much code that refers to “rc.settings.xxx”, which comes from getSettingStructure(), so ideally we don’t want to go through and refactor all of them to getSetting(“xxx”), if we can help it. Thanks.

Yes, the getters:

https://s3.amazonaws.com/apidocs.ortussolutions.com/coldbox/6.7.0/coldbox/system/web/Controller.html

Each struct has a unique getter instead of before which was a weird single function.

1 Like

Honestly I did not know about this CF feature. Thanks Luis!