13 Nov 2010 5:06 AM #1
Sencha Touch + MVC?
Sencha Touch + MVC?
After downloading and opening up the Kiva app, I see the move to the MVC pattern going on in Touch now. I think that is a great move but my question is, is this a viable option NOW that we should move towards if we are starting a new dev project...or is this too bleeding edge in terms of support, framework changes, documentation etc.? For instance, I am looking at the Ext.dispatch to see what the "instance" property is all about, but cannot find anything about Ext.dispatch in the API docs..unless I am missing something.
Again, would like to make this move, but is it here to stay and how long before API docs are updated to accommodate these new features? I know the team is busy though...
17 Nov 2010 11:45 PM #2
I'm curious about the same thing. The tweet demo is the only place have found anything about the MVC structure.
18 Nov 2010 5:54 AM #3
I have made the move and it's pretty cool. Not fully integrating models into the picture yet, but it's very clean and it's also very cool to have a client-side and server-side both implementing MVC type patterns. The ability to "dispatch" to central processing controllers and pass parameter objects is worth it alone, but I am sure that I am just scratching the surface. I would recommend it...
18 Nov 2010 8:38 AM #4
It will be great to have a blog/article on best practices while using MVC on client layer. I didn't know of Ext.regController until I looked into Kiva code.
Either a Sencha developer or someone who has used it should do a brief post on implementing MVC based design.
19 Nov 2010 9:33 PM #5
- Join Date
- Jan 2009
- Palo Alto, California
- Vote Rating
We're working on getting more information up on this but still catching up after the conference earlier this week. Expect more information within the next week on how to use this stuff.
22 Nov 2010 9:06 AM #6
I've been playing around with the MVC platform and it looks very promising.
I am eagerly looking forward to some examples, as I feel like I have only just touched the surface of this cool new feature and I would really like to learn more about it. I have built a Sencha Touch app using my own implementation of the MVC pattern but it's somewhat limited, so I would gladly port to a more sophisticated MVC platform.
27 Nov 2010 8:38 PM #7
28 Nov 2010 12:34 PM #8
Thanks for posting this. I'm dying for a very simple Sencha Touch MVC example. I'll look at yours and hopefully gain something.
I've got a grasp on using and positioning various panels, like in most of the example apps. But when I opened up the Kiva and Twitter apps, I was utterly lost.
28 Nov 2010 6:12 PM #9
28 Nov 2010 6:59 PM #10
By olin in forum Sencha Touch 1.x: DiscussionReplies: 10Last Post: 20 Jan 2012, 10:10 AM
By lexer in forum Sencha Touch 1.x: DiscussionReplies: 10Last Post: 5 Apr 2011, 10:53 PM
By atulbahl in forum Sencha Touch 1.x: DiscussionReplies: 8Last Post: 24 Mar 2011, 12:33 PM
By palnap in forum Sencha Touch 1.x: DiscussionReplies: 4Last Post: 28 Oct 2010, 5:30 PM