- Typical Data interactive By Using PureMVC
- Define Notification : Action Notification(save,get etc..) ,Success Notification, Fault Notification
- Make a new proxy
- Write data access code in proxy : remote object , http req , xml file
- Add Notification to data access result callback : Success Notification, Fault Notification
- Register proxy in somewhere : don't forget!
- Register Notification to command in somewhere : don't forget! , Action Notification
- Write command to drive proxy : don't forget!
- Finally use something to trigger Notification & somewhere will interest in Success Notification or Fault Notification
I always forget 5.6.7 !
沒有留言:
張貼留言