• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

[HELPED] Question about structure

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [HELPED] Question about structure

    Assume the following folder path:

    -AccountManager
    -->app
    ---->controller
    ------>Users.js


    Example from Sencha:
    Code:
    Ext.define('AM.controller.Users', {
        extend: 'Ext.app.Controller',
    
        init: function() {
            console.log('Initialized Users! This happens before the Application launch function is called');
        }
    });

    Is this what the above code in red is really saying?
    Code:
    Ext.define('NameSpaceName.FolderWhereControllerLives.NameOfController', {
        extend: 'Ext.app.Controller',
    
        init: function() {
            console.log('Initialized Users! This happens before the Application launch function is called');
        }
    });
    Thanks...

  • #2
    That is correct. It is important to note though that the "controller" portion should not be changed as the MVC structure relies upon a folder actually named "controller".

    Comment


    • #3
      Originally posted by sean.lanktree View Post
      That is correct. It is important to note though that the "controller" portion should not be changed as the MVC structure relies upon a folder actually named "controller".
      What other portions ("model", "view", etc) does the MVC structure rely upon?

      Thanks...

      Comment


      • #4
        "model", "view", and "store". Although you can create your own subdirectories once in the initial folders.

        Comment


        • #5
          Thanks Sean.

          Comment

          Working...
          X