In our previous
personalGreeting() method, we included two separate functions,
getName(), into the main method. This is not an uncommon practice, and is what you would expect when writing detailed components with relationships between its included functions.
One issue that can arise when developing in this way is when two or more methods contain a variable of the same name and the value of that variable is accessed or changed by one of the methods.
As an example, the following code contains two functions,
cfcomponent tag has been excluded in this example, this could also easily be turned into a CFC by wrapping the functions within