1. #1
    Sencha User
    Join Date
    Jul 2011
    Location
    Pakistan
    Posts
    60
    Vote Rating
    2
    zonaib is on a distinguished road

      0  

    Default models

    models


    in Sencha touch 2 , can i create more than one models in single file like in model.js file ,I create two models e.g
    Ext.define('Application.model.SleepTracker', { extend: 'Ext.data.Model',
    config: {
    fields:[]
    }
    });


    Ext.define('Application.model.WaterTracker', { extend: 'Ext.data.Model',
    config: {
    fields:[]
    }
    });

  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    8,191
    Vote Rating
    63
    aconran is just really nice aconran is just really nice aconran is just really nice aconran is just really nice aconran is just really nice

      0  

    Default


    Sencha Designer enforces that you create one class per file so that it can correctly use the dynamic loader.
    Aaron Conran
    @aconran
    Sencha Architect Development Team