1. #1
    Sencha User
    Join Date
    Aug 2011
    Posts
    8
    Vote Rating
    0
    Answers
    1
    arkos is on a distinguished road

      0  

    Default Unanswered: Differnce between Ext.setup and Ext.application

    hi.

    i am new on sencha touch and also new on extjs. so i walked trough the "getting startet" tutorials. it may be that i do not have all essential basics but i can not see a real difference between ext.setup and ext.application. one tutorial start with setup the next one with application. but none of the tutorials explains why...

    if there is a essential difference, can anyone explain it?

    thanks a lot,
    a.

  2. #2
    Sencha - Tools Team arthurakay's Avatar
    Join Date
    Sep 2008
    Location
    Antioch, IL
    Posts
    1,475
    Vote Rating
    69
    Answers
    85
    arthurakay is a glorious beacon of light arthurakay is a glorious beacon of light arthurakay is a glorious beacon of light arthurakay is a glorious beacon of light arthurakay is a glorious beacon of light

      0  

    Default

    They're very similar, but you should be using Ext.Application - which does things like setting up global namespaces for your MVC-style application, auto-creates a viewport, etc. Just read the API docs on Ext.Application.

  3. #3
    Sencha User
    Join Date
    Aug 2011
    Posts
    8
    Vote Rating
    0
    Answers
    1
    arkos is on a distinguished road

      0  

    Default

    Quote Originally Posted by arthurakay View Post
    They're very similar...
    thanks a lot. that's what i need to know for now. was a bit confusing in the tutorials

  4. #4
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    38,602
    Vote Rating
    1141
    Answers
    3711
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default

    It really depends if you want to use MVC or not... Ext.Application is for MVC whereas Ext.setup is more for simpler things... just a quick note.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  5. #5
    Sencha User
    Join Date
    Aug 2011
    Posts
    8
    Vote Rating
    0
    Answers
    1
    arkos is on a distinguished road

      0  

    Default

    Quote Originally Posted by mitchellsimoens View Post
    It really depends if you want to use MVC or not...
    i will. i do! thanks. guess thread could be changes to "answered"...

  6. #6
    Sencha User
    Join Date
    Jan 2012
    Posts
    3
    Vote Rating
    0
    cormac.ecs is on a distinguished road

      0  

    Default How can elements be removed from the application in Ext.Setup and Ext.Application?

    It seems unclear from the documentation how an element in an application that is coded via Ext.Setup can be removed, versus the simpler "this.remove()" when using Ext.Application. Can anyone confirm?