PureMVC Architects Lounge

Announcements and General Discussion => General Discussion => Topic started by: yeremy on July 25, 2008, 03:03:46



Title: can Commands implement IResponder Interface in PureMVC?
Post by: yeremy on July 25, 2008, 03:03:46
i'm begining to learn pureMVC, before it i was doing tests with Cairngorm...

...my question is : is a good practice use a Delegate class to manage a remote object?

i mean...a command implements IResponder Interface and in the execute method the command references to the delegate class sending as a parameter itself.

i just wanna be sure about it.

it would be nice if somebody would give me an answer!  ;D

thanks! :D


Title: Re: can Commands implement IResponder Interface in PureMVC?
Post by: yeremy on July 25, 2008, 08:36:17
i found the answer :

http://www.dehats.com/drupal/?q=node/26

thanks! :D


Title: Re: can Commands implement IResponder Interface in PureMVC?
Post by: puremvc on July 26, 2008, 04:42:38
Please note that article you site is not in sync with the code in the repository. The Bookstore app in the repository has Proxies NOT Commands talking to the Delegates as the Best Practices guide suggests. I have a FAQ entry made for this and that goes into this more deeply than I can on my phone. I will publish the FAQs soon, but for the moment please examine the Bookstore code in the repository for the recommended approach.

-=Cliff> 


Title: Re: can Commands implement IResponder Interface in PureMVC?
Post by: yeremy on July 26, 2008, 07:39:42
Thanks for your help!  :D