On Tue, May 26, 2009 at 1:12 PM, andreacfm wrote:
>
> Hi,
>
> I was trying to implement a sort of view-let in MG.
> Is there a way to runa specific eventhandler from a view.
>
> Something like runEvent('myEvent')

With MVC, the idea is that the controller handles the events (by
talking to your model, hopefully), vs. spreading your event logic
throughout your app (like in your views).

Seems sorta like it should be MCV, neh?

At least that's my [limited] understanding of the pattern.

The most a view should do would have a link to the event, not run the
event itself (the controller should have done that, if it was needed).

I think.  :)

-- 
We can recognize the dawn and the decline of love by the uneasiness we
feel when alone together.
Jean de la Bruyere

--~--~---------~--~----~------------~-------~--~----~
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

For more about Model-Glue, check http://www.model-glue.com .
-~----------~----~----~----~------~----~------~--~---

Reply via email to