Hybrid View

  1. #1
    Sencha User
    Join Date
    Oct 2008
    Posts
    35
    Vote Rating
    5
    kholy is on a distinguished road

      0  

    Default Unanswered: Ext.Loader can't specify Path

    Unanswered: Ext.Loader can't specify Path


    Hello,

    Just got home from SenchaCon and wanted to start converting my App to sencha touch 2 but the way i have the JS structured i have it under another sub folder so /js/app/controllers/abc.js for example but even when i specify in ext.loader paths { 'My': './js/' } i cant get it to change folders or anything. can anyone verify that the paths property is working?

    Thanks,

    Kevin

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    34,121
    Vote Rating
    453
    Answers
    3160
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    Code:
    Ext.Loader.setConfig({
        enabled : true,
        paths   : {
            'MyStuff' : './js/MyStuff'
        }
    });
    Works for me
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    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 almost in print!

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

  3. #3
    Sencha - Sencha Touch Dev Team Jacky Nguyen's Avatar
    Join Date
    Jul 2009
    Location
    Palo Alto, California
    Posts
    469
    Vote Rating
    9
    Answers
    24
    Jacky Nguyen will become famous soon enough Jacky Nguyen will become famous soon enough

      0  

    Default


    Quote Originally Posted by kholy View Post
    Hello,

    Just got home from SenchaCon and wanted to start converting my App to sencha touch 2 but the way i have the JS structured i have it under another sub folder so /js/app/controllers/abc.js for example but even when i specify in ext.loader paths { 'My': './js/' } i cant get it to change folders or anything. can anyone verify that the paths property is working?

    Thanks,

    Kevin
    Be sure that you're including sencha-touch-debug.js (development version of core) instead of sencha-touch.js (production)
    Sencha Touch Lead Architect