1. #1
    Sencha Premium Member
    Join Date
    Sep 2008
    Posts
    710
    Vote Rating
    6
    Bucs is on a distinguished road

      0  

    Default 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...

    Thanks

  2. #2
    Sencha User
    Join Date
    Nov 2010
    Location
    Norway
    Posts
    56
    Vote Rating
    1
    aCa is on a distinguished road

      0  

    Default


    I'm curious about the same thing. The tweet demo is the only place have found anything about the MVC structure.

  3. #3
    Sencha Premium Member
    Join Date
    Sep 2008
    Posts
    710
    Vote Rating
    6
    Bucs is on a distinguished road

      0  

    Default


    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...

  4. #4
    Sencha User
    Join Date
    Nov 2010
    Posts
    44
    Vote Rating
    0
    senchauser2010 is on a distinguished road

      0  

    Default


    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.

  5. #5
    Sencha - Community Support Team edspencer's Avatar
    Join Date
    Jan 2009
    Location
    Palo Alto, California
    Posts
    1,939
    Vote Rating
    9
    edspencer is a jewel in the rough edspencer is a jewel in the rough edspencer is a jewel in the rough

      0  

    Default


    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.
    Ext JS Senior Software Architect
    Personal Blog: http://edspencer.net
    Twitter: http://twitter.com/edspencer
    Github: http://github.com/edspencer

  6. #6
    Sencha User
    Join Date
    Jul 2010
    Location
    Switzerland
    Posts
    78
    Vote Rating
    0
    fx-mike is on a distinguished road

      0  

    Default


    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.

  7. #7
    Ext User
    Join Date
    Nov 2010
    Posts
    17
    Vote Rating
    0
    RobinQu is on a distinguished road

      0  

    Default


    I've been play around with Sencha Touch recently, and I made a Contacts Manager demo using MVC pattern.
    I hope my demo helps: https://github.com/RobinQu/Phone-Demo

  8. #8
    Ext User aaronwbg's Avatar
    Join Date
    Nov 2010
    Posts
    17
    Vote Rating
    0
    aaronwbg is on a distinguished road

      0  

    Default


    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.

  9. #9
    Touch Premium Member jeffcrilly's Avatar
    Join Date
    May 2008
    Posts
    89
    Vote Rating
    0
    jeffcrilly is on a distinguished road

      0  

    Default


    Quote Originally Posted by RobinQu View Post
    I've been play around with Sencha Touch recently, and I made a Contacts Manager demo using MVC pattern.
    I hope my demo helps: https://github.com/RobinQu/Phone-Demo
    thx for posting. Am looking at it for the patterns.

    One question (so far)... should there be a namespace for "phone"?

    I'm used to using Ext.ns() for namespacing my application.

  10. #10
    Ext User
    Join Date
    Nov 2010
    Posts
    17
    Vote Rating
    0
    RobinQu is on a distinguished road

      0  

    Default


    Ext.Application instance will create the namespace itself:

    http://dev.sencha.com/deploy/touch/d...xt.Application

Similar Threads

  1. Replies: 10
    Last Post: 20 Jan 2012, 10:10 AM
  2. Sencha Touch MVC framework and SCSS integration guides
    By lexer in forum Sencha Touch 1.x: Discussion
    Replies: 10
    Last Post: 5 Apr 2011, 10:53 PM
  3. Using Sencha Touch with ASP .Net MVC
    By atulbahl in forum Sencha Touch 1.x: Discussion
    Replies: 8
    Last Post: 24 Mar 2011, 12:33 PM
  4. Sencha Touch on iPhone v1 / iPod touch v1 ?
    By palnap in forum Sencha Touch 1.x: Discussion
    Replies: 4
    Last Post: 28 Oct 2010, 5:30 PM

Thread Participants: 11