Tuesday January 9, 2007 2:12 PM
Word Count: 169
A couple people have emailed me and asked me to post a complete code example. If you click on the download link below you will get a settings.zip file that contains 3 files
- Application.cfc
- Index.cfm
- org.danvega.Settings.cfc
The Application component will show you a quick of example of how to instantiate the object and place it into the application scope. I would normally do this via
ColdSpring but for the example I will keep it simple. The index file shows 3 quick examples; a way to get all settings, a way to get 1 setting and how to set a new value and re write the file. Finally the Settings component is in the folder org.danvega. If you want to change the location of this file just make sure to change the return type. Please let me know if anyone has any problems. Enjoy!!!