Your SlideShare is downloading. ×
MVC In Sencha Touch
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

MVC In Sencha Touch

499
views

Published on

This ppt gives a breif description about how MVC is done in Sencha Touch Mobile Applications

This ppt gives a breif description about how MVC is done in Sencha Touch Mobile Applications

Published in: Technology

1 Comment
1 Like
Statistics
Notes
No Downloads
Views
Total Views
499
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
23
Comments
1
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. MVC IN SENCHA TOUCH By, Amith
  • 2. Why MVC?
  • 3. What‟s MVC?
  • 4.  Small Talk 80 introduces MVC Model View Controller
  • 5. Model Loads and manages the application data Usually in response to request from the View
  • 6. View Manages the display of information and UI controls
  • 7. Controller Listens for input from the user , updates Model and View
  • 8. Model Table +Insert() +update() +delete()
  • 9. View
  • 10. Controller
  • 11. ModelExt.define(„MyApp.model.User‟,{ extend:‟ext.data.model‟, fields:[ „name‟, „email‟, „password‟ ]});
  • 12. ViewExt.define(‘MyApp.view.Info’,{ extend:’Ext.Panel’, config:{ html:’this is such a good example’ }});
  • 13. ControllerExt.define(„MyApp.controller.Users‟,{ extend:‟ext.app.Controller‟, init:function(){ this.control({ „button‟:{ tap:function(){ alert(“you have tapped a button”); } } }); },});
  • 14. File Structure
  • 15. Live Code* *Might end in a disaster..!!!
  • 16. Questions…?
  • 17. Thank you..!

×