Reputation: 55
I am using sencha cmd for the first time and i am following the sencha document to set up the application. I am able to follow the documentation and after I create the application, I can only see the "MainController.js" and "MainModel.js" under the following path app/view/main . "Main.js" is missing . Need help to solve this please
I am following the the link http://docs.sencha.com/cmd/6.x/extjs/cmd_app.html
Upvotes: 0
Views: 423
Reputation: 3150
What you have created is an universal app
. This means that your controllers
and viewmodels
can be shared, and that the views
for classic
(ExtJs) and modern
(Sencha Touch) apps are specific for that platform. Main.js
is not missing, it is in another place.
If you want to generate apps for a specific platform (classic or modern), you can.
sencha generate app -ext MyAppName ./MyAppPath
This will generate an application using the newest version available for the specified framework.
For Ext JS 6, by default, this application will be a Universal Application. To override this and select a particular toolkit, you can use either of these variations
sencha generate app -ext -classic MyAppName ./MyAppPath
sencha generate app -ext -modern MyAppName ./MyAppPath
Upvotes: 3