1. #1
    Sencha User
    Join Date
    Dec 2010
    Posts
    68
    Vote Rating
    -1
    jairok is an unknown quantity at this point

      0  

    Default Answered: Store - Ext.define or Ext.create ?

    Answered: Store - Ext.define or Ext.create ?


    Hi all,

    A question about the new way of using the store object.

    Past in Sencha 1.x, we used Ext.reg() for define and create the store.
    Now in Sencha 2.x, we must use Ext.define, but this method only "define" the store, doesn't create it.

    My question is can we use Ext.create("Ext.data.store",{config}) in replacement of Ext.reg() ?
    Is it right to do this ? or a when must we "create" the store ? in controller init function ?

    Thanks

  2. In the MVC structure you want to use Ext.define. The Application will load the store and then automatically instantiate it.

  3. #2
    Sencha User swarnendude's Avatar
    Join Date
    Jul 2009
    Location
    Kolkata, India
    Posts
    117
    Answers
    1
    Vote Rating
    1
    swarnendude is on a distinguished road

      0  

    Default


    Ext.define is used to define a Class where Ext.create is used to create an instance of a Class. So, if you want to create a new class extending Ext.data.Store, then go for Ext.define. If you want to create an instance of Store (which is your case I suppose), go for Ext.create.
    Swarnendu
    Co-founder & Lead Architect @ Innofied

    ------------------
    I blog at http://www.swarnendude.com

  4. #3
    jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,353
    Answers
    102
    Vote Rating
    80
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    Eg.reg is gone

  5. #4
    Sencha User
    Join Date
    Mar 2007
    Location
    Haarlem, Netherlands
    Posts
    1,243
    Answers
    28
    Vote Rating
    10
    TommyMaintz will become famous soon enough TommyMaintz will become famous soon enough

      0  

    Default


    In the MVC structure you want to use Ext.define. The Application will load the store and then automatically instantiate it.

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