Answered: Organise views in subfolders, is moving the folders and changing the Ext.define enoug
Answered: Organise views in subfolders, is moving the folders and changing the Ext.define enoug
Hello,
Does anyone know what you have to do when you want to tidy up your work in subfolders?
For example in my view folder I have like 15 views. I would like to group the views in subfolders,
like main and a gallery folder. But if I move these files to the subdirectories and add the 'subfolder name'
in the Ext.define --> for example --> the Ext.define('Mainfolder.view.subfolder.ViewName) the app does not show anything anymore.
Do I have to change anything else?
I used the Simple MVC example structure at the top of this forum topic.
To my knowledge, there is nothing wrong in the way u define the same but then the concern is how you refer to the same.
In a controller when u set the view .. instead of
views : [
'Viewname'
],
U need to refer to the same as
views : [
'Subfolder.Viewname'
],
To my knowledge, there is nothing wrong in the way u define the same but then the concern is how you refer to the same.
In a controller when u set the view .. instead of
views : [
'Viewname'
],
U need to refer to the same as
views : [
'Subfolder.Viewname'
],