Results 1 to 3 of 3

Thread: How to link my views correctly in application.js?

  1. #1
    Sencha User Carlos Souza's Avatar
    Join Date
    May 2015
    Location
    Minas Gerais, Brazil.
    Posts
    29
    Answers
    1

    Default Answered: How to link my views correctly in application.js?

    Hello everyone..


    I'm still learning ExtJS, but I always run into simple situations that make me go crazy ...
    My views are organized into a structure of subfolders like "app->views-> general-> administrator-> view1.js". This view is defined as "App.view.Foo" (Ext.define).


    In application.js, in the views section, I access this view as follows: "App.views.general.administrator.view1". However, I am faced with a 404 error.
    I am also using sencha cmd.
    What would be the proper way to do this?


    Thanks in advance.

  2. Hi--

    "App.views.general.administrator.view1" should be the name of your class as well.

    Code:
    Ext.define('App.views.general.administrator.view1', {
        ...
    })


    Thanks!
    Joel

  3. #2
    Sencha User joel.watson's Avatar
    Join Date
    Nov 2014
    Posts
    3,120
    Answers
    446

    Default

    Hi--

    "App.views.general.administrator.view1" should be the name of your class as well.

    Code:
    Ext.define('App.views.general.administrator.view1', {
        ...
    })


    Thanks!
    Joel

  4. #3
    Sencha User Carlos Souza's Avatar
    Join Date
    May 2015
    Location
    Minas Gerais, Brazil.
    Posts
    29
    Answers
    1

    Default

    That's it... so simply...Thanks!!

Similar Threads

  1. Views not loaded by Ext.application
    By neo1010 in forum Ext: Q&A
    Replies: 2
    Last Post: 18 Oct 2014, 6:29 AM
  2. One page application, how many views ?
    By drunkmoose in forum Ext: Q&A
    Replies: 2
    Last Post: 30 May 2014, 12:18 PM
  3. Controller and application views
    By arkepp in forum Sencha Touch 2.x: Q&A
    Replies: 2
    Last Post: 28 Jun 2013, 4:54 AM
  4. Animating two seperate panels/views on a link click
    By simondavies in forum Sencha Touch 2.x: Q&A
    Replies: 17
    Last Post: 24 Apr 2012, 2:56 AM
  5. Big Application - Defining Views
    By SvenDiego in forum Ext 3.x: Help & Discussion
    Replies: 4
    Last Post: 26 Oct 2009, 7:56 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •