Over 10 years of community discussion and knowledge are maintained here as a read-only archive.
Hi all,First time user of PureMVC, I've just succeeded in getting Zend_Amf to work with a test Flex project.Scenario:I'm building an application in which, datagrid are loaded within tabNavigators. There are 2-3 tabNavigators, so there can be multiple datagrids showing at the same time (the selection in one will affect the dataProvider for the others).Example: Selecting a row in datagrid1 (in tabNavigator1) will update the tabNavigator2. Once tabNavigator2 is updated, the user will select a tab and datagrid2 will be displayed with informaion pertaining to the selected row in datagrid1.Question:What should I be creating Proxies and Mediators for exactly? Should each datagrid have its own Mediator? Same for the tabNavigators? Should I only create Mediators for the tabNavigators? Should I create Proxies based on the PHP service I'll be calling? (ie: one Proxy for each remote service?)Sorry for the very noobish question, but I can't seem to get my head around what level the PureMVC is supposed to tie to.Thanks!-frag
You don't really need to proxy your remote SERVICE as much as your data model. So, from ZendAMF you are retrieving a list of Widget objects. On the Flex side, you might want a WidgetListProxy that holds an ArrayCollection of all your widgets. In addition, you may want to create individual WidgetProxy objects for each WidgetVO.