And should I scope like
<cfset Variables.item = CreateObject("component", "model.item")>
..
<cfset arguments.event.setValue("item", Variables.myItem) />
On Jun 22, 11:01 am, Brettski <[email protected]> wrote:
> the model bits and pieces are all used in the view, am I thinking
> wrong to pass all this back to view? What else should I pass back a
> struct or something?
>
> My vars aren't scoped, so does this mean there is one controller
> "instance / singleton" for the app, and if I don't scope them they can
> bleed? I think that's if I scope all vars they will stay in user
> session?
>
> On Jun 22, 9:55 am, Roy Martin <[email protected]> wrote:
>
>
>
>
>
>
>
> > Off the cuff, you haven't var scoped your 'item' variable or your return
> > variable 'status'. So those variable will be subject to variable bleed under
> > load. As an additional point of feedback, passing the entire model back to
> > the view isn't best practice. It would be better if you had passed just the
> > return variable back to the model. Unless that's a typo?
>
> > Thanks,
> > Roy
--
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