I've already read this, this, this and this but it didn't give a solution.
I've generated a basic application with sencha cmd.
I've created a model "Groupe.js", a store "TreeGroupes.js" that is a "collection" of rows of "Groupe.js" (sorry if I'm not using the right words, I hope you know what I mean). Then I've created a view of this collection: Gestion.view.TreeGroupes. And I'm displaying it in my main controller view/main/Main.js.
Here's the tree:
.
├── Application.js
├── model
│ ├── Groupe.js
│ └── Readme.md
├── Readme.md
├── store
│ ├── Readme.md
│ └── TreeGroupes.js
└── view
├── main
│ ├── MainController.js
│ ├── Main.js
│ └── MainModel.js
└── TreeGroupes.js
So here's my logic:
view/main/Main.js
just needsGestion.view.TreeGroupes
so I only add "Gestion.view.TreeGroupes
" in the "requires
" configuration of this file;view/TreeGroupes.js
needsGestion.store.TreeGroupes
so I only add "Gestion.store.TreeGroupes
" in the "requires
" configuration of this file;store/TreeGroupes.js
needsGestion.model.Groupe
to get data so I only add "Gestion.model.Groupe
" in the "requires
" configuration of this file.
It keeps saying me those two warnings:
[W] [Ext.Loader] Synchronously loading 'Gestion.view.TreeGroupes'; consider adding Ext.require('Gestion.view.TreeGroupes') above Ext.onReady
[W] [Ext.Loader] Synchronously loading 'Gestion.store.TreeGroupes'; consider adding Ext.require('Gestion.store.TreeGroupes') above Ext.onReady