PDA

View Full Version : Official MVC methodology/guidelines?



cjauvin
26 Nov 2011, 2:13 PM
I'd like to structure the ST application I'm developing with MVC, as much as possible. However, I have a hard time finding "authoritative" documentation about it. The best I could find are good, but incomplete tutorials, that don't answer all questions:

http://www.onlinesolutionsdevelopment.com/blog/mobile-development/creating-a-sencha-touch-mvc-application-from-scratch-part-1
http://miamicoder.com/2011/writing-a-sencha-touch-mvc-application

It seems that ExtJS has a more official documentation about it:

http://docs.sencha.com/ext-js/4-0/#!/guide/application_architecture

But then I worry that there isn't a perfect match between the two libraries about this matter.

Any hint, or people in the same situation?

mitchellsimoens
27 Nov 2011, 7:16 AM
ST1 and Ext JS4/ST2 MVC are not alike.

In the download, there are two examples that are MVC that you can use.. the kiva and twitter examples.

cjauvin
27 Nov 2011, 10:16 AM
Excellent! Thanks for the tip, I simply didn't think of looking at the most obvious place..

digeridoo
27 Nov 2011, 11:28 PM
Don't forget this other tutorial on the same site...really helps you get started:

http://www.onlinesolutionsdevelopment.com/blog/web-development/javascript/loading-sencha-touch-controllers-and-view-files-dynamically/

...and there are some great ones on the superdit website too (google sencha touch superdit).

:-)