Question
cfc code looking better now?!
Thanks for everyone´s help I feel a lot more confident
now, what do you think of this code now? I understand the concepts
more now thanks again to everyone
1.According to Adam if I understand him and encapsultation right I just need to put everything into a session and return the session to the calling page in this specific case which I have done now so I can just cfreturn the errors.
2.If I give each of the cfargument tags a default attribute value it sets a value in the this scope and in the getemp function but not in the emp session which is the same (eg emp.username= arguments.username). So what is the point of setting a default value?
Thank you
1.According to Adam if I understand him and encapsultation right I just need to put everything into a session and return the session to the calling page in this specific case which I have done now so I can just cfreturn the errors.
2.If I give each of the cfargument tags a default attribute value it sets a value in the this scope and in the getemp function but not in the emp session which is the same (eg emp.username= arguments.username). So what is the point of setting a default value?
Thank you
