Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

Hybrid View

  1. #1
    Sencha User
    Join Date
    Jun 2012
    Posts
    43
    Answers
    4
    Vote Rating
    0
    Malro is on a distinguished road

      0  

    Default Unanswered: Sencha Cmd app Build (production, testing ...) Ext.create vs xtypes

    Unanswered: Sencha Cmd app Build (production, testing ...) Ext.create vs xtypes


    What are the differences betwen using xtypes and the Ext.create() way?

    I am asking, because, i was trying to build an app based on ST 2.1. In develop mode all worked fine. But after using sencha cmd to build (minfier) the app
    Code:
    sencha app build production
    i was facing the fact, that nearly no view was working. e.g. jsonp requests were successful, but the corresponding lists show nothing

    after some tests, i recognized the problem has something to do with using multiple view files. if i was putting the whole view stuff in one file, all worked fine in developmode and also after builds.

    the comments in the docs gave me the needed hint. here (go down to comments) the user talwinder is posting a solution

    I was using Ext.create() to instantiate a class/view. After using xtypes all works.

    thanks to talwinder

  2. #2
    Sencha Premium Member
    Join Date
    May 2012
    Posts
    21
    Answers
    1
    Vote Rating
    0
    eladc is on a distinguished road

      0  

    Default


    I have the same problem. but i can't render it in one view because i render each view to another component in a page by the component id.

    Does anybody from Sencha have a solution? or is it a bug?

  3. #3
    Sencha User
    Join Date
    Apr 2010
    Location
    China
    Posts
    227
    Answers
    64
    Vote Rating
    20
    haduki will become famous soon enough haduki will become famous soon enough

      0  

    Default


    Code:
    Ext.create('class');
    dont you think it is a function calling?

    Code:
    {
       xtype:'xtype'
    }
    dont you think it is a simple object?

    Code:
    Ext.ClassManager.getName({xtype:'xtype'})// ''
    Ext.ClassManager.getName(Ext.create('class'))//className
    if you get problem with Ext.create, make sure your require config is correct.
    I write English by translator.

  4. #4
    Sencha User
    Join Date
    Jun 2012
    Posts
    43
    Answers
    4
    Vote Rating
    0
    Malro is on a distinguished road

      0  

    Default


    short example. two ways to add same view, all works, but after build the form added by function call is not working
    Code:
    items: [
            Ext.create('AppName.view.xyz'), // after build not doing fine
            {
                xtype: 'xyz' //ok
            }
    ]
    requirements are full set