I have little impression about variables resolve order, but I can’t find it in the CFML Reference or ColdFusion Dev Guide. Can anyone help?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It is a generally accepted best practice to always scope your variables for two main reasons:
That said, here’s the order variable scopes are searched:
EDIT: It’s also telling to note what scopes are not searched: SESSION, SERVER, APPLICATION