2010年6月15日 星期二

PureMVC筆記<三>

  • Typical Data interactive By Using PureMVC
  1. Define Notification :  Action Notification(save,get etc..) ,Success Notification, Fault Notification
  2. Make a new proxy
  3. Write data access code in proxy : remote object , http req , xml file 
  4. Add Notification to data access result callback : Success Notification, Fault Notification
  5. Register proxy in somewhere : don't forget!
  6. Register Notification to command in somewhere : don't forget!  , Action Notification 
  7. Write command to drive proxy : don't forget! 
  8. Finally use something to trigger  Notification  & somewhere will interest in Success Notification or  Fault Notification 
I always forget 5.6.7 !