1. #1
    Ext JS Premium Member
    Join Date
    Nov 2011
    Posts
    200
    Vote Rating
    7
    Qarea is on a distinguished road

      0  

    Default Model class not found in built app

    Model class not found in built app


    I have huge extjs4 app started two years ago, now trying to import it to sencha cmd project
    Generated new application witn sencha cmd, replaced app folder with my code, disabled autoloader

    With sencha app build -e testing I can successfully build app-classes.js , but app doesnt loaded producing such errors:
    PHP Code:
    [WExt.data.Store created with no modelThe name 'MyApp.model.Feature' does not correspond to a valid model
    all-classes.js (line 11801)

    TypeErrorme.model is undefined
    me
    .setProxy(me.proxy || me.model.getProxy());
    all-classes.js (line 82431
    'MyApp.model.Feature' exists and defined , app worked previously, and looks like problem is in files concatenating order - 'MyApp.model.Feature' firstly used on 121xxx line but defined on 123xxx line. How to fix this?

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,791
    Vote Rating
    833
    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


    Did you require it in the store or app.js?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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.

  3. #3
    Ext JS Premium Member
    Join Date
    Nov 2011
    Posts
    200
    Vote Rating
    7
    Qarea is on a distinguished road

      0  

    Default


    Thanks, this and some other models were not required in some stores and views.

    Should I always require models and stores that described in views stores models controller config sections ?


    Finally I run my application correctly, but with ugly hack - I had to place 2 models and 3 stores
    in 'MyApp/' (it is name for my Ext.Application) directory with subdirs 'model' and 'store' and 4 controllers and 3 views in '/bundles/myapp/js' directory (this path is defined as appFolder in Ext.Application) also with subdirs - because application tried to load it for that url and gets 404 .
    Why may this happen, why there are two different paths, why only couple of files are loaded? While it can be some require problems for models and views I'm very confused for controllers that are properly defined in Ext.Application

  4. #4
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,791
    Vote Rating
    833
    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


    If a store is going to use a model, that store should require the model. If the model is going to be used without a store then put it in the models array in Ext.application
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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
    Ext JS Premium Member
    Join Date
    Nov 2011
    Posts
    200
    Vote Rating
    7
    Qarea is on a distinguished road

      0  

    Default


    Thanks. Loading of all this js files - models stores views and controllers - solved by 'If a store is going to use a model, that store should require the model' for two stores

  6. #6
    Sencha User
    Join Date
    Dec 2011
    Posts
    154
    Vote Rating
    3
    coolfish is on a distinguished road

      0  

    Default


    Hm I'm getting the same thing - 404's on 2 files (one my model, another the validation, interestingly the model is the one that has validations on it). I've got my requires in place on the model, and its store. There are no errors or warnings when building, it says successfully deployed. Any ideas?

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi