Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7678935
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T17:45:38+00:00 2026-05-31T17:45:38+00:00

I have learned from the sencha doc how to create a simple MVC application,

  • 0

I have learned from the sencha doc how to create a simple MVC application, and now I wonder if it is possible to move from this structure :

-app
--Controller
---controller1.js
---controller2.js
   ...
--Model
---model1.js
---model2.js
   ...
--Store
---store1.js
---store2.js
   ...
--View
---view1.js
---view2.js
...

to this modular structure :

-app
--Module1
---controller.js
---model.js
---store.js
---view.js
--Module2
---controller.js
---model.js
---store.js
---view.js

I want also if you can advise me about the modular structure (good, bad, complex, remarks…), Thank you in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T17:45:39+00:00Added an answer on May 31, 2026 at 5:45 pm

    You can do whatever you want with different file and class names. Just remember to keep class name in sync with its position in the file hierarchy. For example if you have class

    MyApp.controller.Controller1 
    

    located in the following file

    - app\Controller\Controller1.js 
    

    If you move it to the

    - app\module1\Controller.js 
    

    You would need to rename class name to

    MyApp.module1.Controller
    

    See for yourself whether having such class hierarchy would be appropriate for you. I would not do this. We keep all code according to ExtJs MVC directory structure (mostly). We have the following directories

    - store
      -- base
    - view
      -- base
    - controller
    - model 
    

    We usually put base classes underneath special base director to easily separate them from the rest of code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have learned so much from http://www.summerofnhibernate.com/ nhibernate screen casts that i wonder why
I have an application that stores images in a database. Now I have learned
i have learned MVC Architecture from Zend Framework, and i just started learning in
From what I have learned I need to follow this step to prepare for
This is getting extremely irritating. Right now I have a winforms application, and things
I'm new to MVC but from what I have learned so far (for example
So, I have modified a query I learned from this thread , however when
I learned of gist.github.com from Mozilla Ubiquity , and have been using it to
I have learned Perl and PHP.So I want to do simple real time project
I have learned that browsers can only load a few files from the same

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.