You lost me. Won t it go like this...? 1. onreqest 2. controller 3. model - where Object is initially defined 4. controller 5. view - where Object isMessage 1 of 9 , Nov 1, 2008View SourceYou lost me. Won't it go like this...?
- model - where "Object" is initially defined
- view - where "Object" is consumed
On Fri, Oct 31, 2008 at 6:52 PM, Adam Haskell <a.haskell@...> wrote:I was doing this in onreqest or onreqestendAdam
Sent from my iPhone
On Oct 31, 2008, at 10:07 AM, John M Bliss <bliss.john@...> wrote:
> structAppend(variables, event.getAllValues(), true)
One can do this in the controller and then "see" variables.Object in the view? In this thread:
...I concluded that "variables" scope is not shared between controller & view and Sean Corfield seemed to confirm this and suggested FB event.
Let me know...On Fri, Oct 31, 2008 at 8:49 AM, Adam Haskell <a.haskell@...> wrote:
On Friday, October 31, 2008, at 06:05AM, "John M Bliss" <bliss.john@...> wrote:
>I was mostly complaining about:
><cfset Object = event.getValue("Object")>
>That strikes me as code that should be kept out of the view.
>#attributes.Object.field# or #event.getValue(object.field)#
>are an improvement. Thoughts...?
An additional thing I have done (and this was to maintain compatibility mostly for legacy apps) was I pull stuff off the event stack and push it straight into the variables scope prior to calling my layouts, structAppend(variables, event.getAllValues(), true).Not sure if I like it since I have not actually implemented it yet but it seems to be a, mostly, elegant solution right now.