Skip to content

Commit 3e1c977

Browse files
author
Bruno Tavares
committed
Add instructions on how-to include with Sencha Command old and new
1 parent 5157724 commit 3e1c977

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

README.md

+18-9
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,27 @@ It comes with:
2020

2121
1. Copy Router.js to your application. Folder suggested {root}/lib/Router.js;
2222

23-
2. Configure Ext.Loader path:
23+
a. If you use the old Sencha Command v2, configure Ext.Loader path:
2424

25+
Ext.Loader.setConfig({
26+
enabled: true,
27+
paths: {
28+
'Ext.ux.Router': 'lib/Router.js'
29+
}
30+
});
2531

26-
Ext.Loader.setConfig({
27-
enabled: true,
28-
paths: {
29-
'Ext.ux.Router': 'lib/Router.js'
30-
}
31-
});
32+
b. If you use the new Sencha Command v3+, open .sencha/app/sencha.cfg and add the dependency to your path:
3233

34+
app.classpath=${app.dir}/app,${app.dir}/../../Router.js
35+
36+
37+
After that, run "sencha app refresh" on your terminal. Sencha CMD will read all dependencies and update
38+
the bootstrap.js file.
39+
40+
Check my example [Single Page](http://github.com/brunotavares/Ext.ux.Router/tree/master/examples/singlepage)
41+
for more details.<br /><br />
3342

34-
3. Add the class requirement to your application start and setup routes (see below the Route Format):
43+
2. Add the class requirement to your application start and setup routes (see below the Route Format):
3544

3645
Ext.application({
3746
name: 'App',
@@ -55,7 +64,7 @@ It comes with:
5564
}
5665
});
5766

58-
5. Create your controllers and actions according to your routes;
67+
3. Create your controllers and actions according to your routes;
5968

6069
Ext.define('App.controller.Home', {
6170
extend: 'Ext.app.Controller',

0 commit comments

Comments
 (0)