Environment:
Sencha Cmd: v5.1.1.39
ExtJS: 5.1.0 commercial
and one of the views correctly was sourced into the app (and the microloader for the app index.html picked it up). Here is a snippet:
but when I try to add a controller, it is not found by the microloader:
as evident by the 404 for this file and it looking in the wrong location:
I tried altering the app.json with no luck, for things like this:
How to add controllers from Package to App?
Sencha Cmd: v5.1.1.39
ExtJS: 5.1.0 commercial
I've got a single package, and a single app. I've named the app "App" for now. Eventually, I'd like to have two Extjs apps (running completely independently in different pages), and share logic between them, so thats the purpose of the package.
The package successfully builds, and in the app I sourced in the package:
Code:
"requires": [
"analyticsPackage"
],
and one of the views correctly was sourced into the app (and the microloader for the app index.html picked it up). Here is a snippet:
Code:
packages/analyticsPackage/src/view$ head -3 ReportList.js
Ext.define('App.view.ReportList', {
xtype: 'reportList',
extend: 'Ext.grid.Panel',
but when I try to add a controller, it is not found by the microloader:
Code:
packages/analyticsPackage/src/controller$ head -3 ReportList.js
Ext.define('App.controller.ReportList', {
extend: 'Ext.app.Controller',
views: ['ReportList'],
as evident by the 404 for this file and it looking in the wrong location:
Here is the Ext.application definition:
Code:
Ext.application({
name: 'App',
controllers: ['ReportList',
......
I tried altering the app.json with no luck, for things like this:
"classpath": "${workspace.dir}/packages/analyticsPackage/src,${app.dir}/app",
Thanks for your time!
How to add controllers from Package to App?
Aucun commentaire:
Enregistrer un commentaire