Hi,
I have been using Model-Glue for ages now but stumbled across something
puzzling. I accidentally left out of one of my controller methods the
myFormVar = arguments.event.getValue("myFormVar") call when processing a
form submission, and just referenced myFormVar lower down in the method but
found that the variable was being referenced without throwing an error. My
question, therefore, is: is there some sort of implicit copyToScope()
happening in controller functions? I even tested a controller method by
removing the event argument (ie <cfargument name="event">) and found that
the variables from the form scope were being correctly referenced.
Obviously, when I removed the event argument and tried
arguments.event.getValue("myFormVar") it then threw an error.
Any responses would be appreciated.
Thanks,
Tom
--
--
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog
You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en
---
You received this message because you are subscribed to the Google Groups
"model-glue" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.