Hybrid View

  1. #1
    Sencha User mysticav's Avatar
    Join Date
    Mar 2007
    Location
    Mexico
    Posts
    474
    Vote Rating
    5
    mysticav is on a distinguished road

      0  

    Default Wrong paths using "views" Controller property on an app built with Cmd

    Wrong paths using "views" Controller property on an app built with Cmd


    Taking as a reference the skeleton generated by sencha app build,

    if you try to include a view on MyApp.controller.Main like this:

    Code:
    Ext.define('MyApp.controller.Main', {
        extend: 'Ext.app.Controller',
        views:['Main']
    });
    This is how ext looks for it:

    Code:
    /app/controller/Main.js/view/Main.js
    And should be:
    Code:
    /app/view/Main.js
    AS you can see, for some weird reason it is adding "controller/Main.js" to the path.

    Exactly the same problem happens using the "stores" property.

    How can I fix this ? This problem is preventing me to update my application.
    Using Ext with cachefly
    Working on LAMPExt

  2. #2
    Sencha User mysticav's Avatar
    Join Date
    Mar 2007
    Location
    Mexico
    Posts
    474
    Vote Rating
    5
    mysticav is on a distinguished road

      0  

    Default


    This happens because the Ext.Loader is receiving the expression as:
    "MyApp.controller.Main.view.Main"

    instead of:
    "MyApp.view.Main"

    Same happens for stores that are included using the "stores" property from a Controller.
    I wonder where this weird concatenation is taking place.

    Also wonder why nobody has complained about this obvious problem.
    Using Ext with cachefly
    Working on LAMPExt

  3. #3
    Sencha User mysticav's Avatar
    Join Date
    Mar 2007
    Location
    Mexico
    Posts
    474
    Vote Rating
    5
    mysticav is on a distinguished road

      0  

    Default


    Any idea ?

    This is the only problem preventing me to migrate my app.

    I can get rid of views cause they are already loaded via bootstrap.js

    But I need to use the "stores" property, cause it instantiates the stores and add the getters which I use.

    Without "stores" controller property working, I have to create each store manually and use Ext.getStore instead of the getter.
    Using Ext with cachefly
    Working on LAMPExt

  4. #4
    Sencha User
    Join Date
    Oct 2010
    Posts
    75
    Vote Rating
    4
    devnullable is on a distinguished road

      0  

    Default


    This bug has been already reported. Sencha doesn't seem to be too keen to fix it, unfortunatelly, as it affects everybody who starts a new Ext JS application using Sencha Cmd.

    http://www.sencha.com/forum/showthread.php?244464-4.1.1-Controller-s-modules-load-problem&p=897523&viewfull=1

  5. #5
    Sencha - Ext JS Dev Team dongryphon's Avatar
    Join Date
    Jul 2009
    Posts
    1,334
    Vote Rating
    129
    dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all

      0  

    Default


    This should be fixed in Sencha Cmd 3.0 GA (3.0.0.250). The issue had to do with how the metadata contained complete file names but the MVC namespace resolver was expecting path prefixes to define namespaces.

    You will need to do a "sencha app refresh" to refresh the bootstrap.js file to get this to work.

    This was ticket SDKTOOLS-217 (see http://www.sencha.com/forum/showthre...Now-Available).
    Don Griffin
    Ext JS Development Team Lead

    Check the docs. Learn how to (properly) report a framework issue and a Sencha Cmd issue

    "Use the source, Luke!"

  6. #6
    Sencha User
    Join Date
    Oct 2010
    Posts
    10
    Vote Rating
    0
    moisan.j is on a distinguished road

      0  

    Default


    still have the problem with Sencha Cmd v3.0.0.250

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