Quantcast
Channel: Adobe Community : Unanswered Discussions - ColdFusion
Viewing all articles
Browse latest Browse all 5794

Configuration variables for a REST cfc

$
0
0

I am creating my first RESTful cfc which will allow a legacy system to interact with a more current system.  There are some "configuration" variables that need to be available to a couple of functions in the cfc.  These variables are mainly for disk paths and an API key.  What is the best practice for setting these variables in my RESTful cfc?  Should I just declare them at the beginning of the component outside the functions in the variables scope?  Do I need an init function?  If I use an init function how does it get called when the other functions are only called via REST?


Viewing all articles
Browse latest Browse all 5794


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>