File tree 1 file changed +18
-9
lines changed
1 file changed +18
-9
lines changed Original file line number Diff line number Diff line change @@ -20,18 +20,27 @@ It comes with:
20
20
21
21
1 . Copy Router.js to your application. Folder suggested {root}/lib/Router.js;
22
22
23
- 2 . Configure Ext.Loader path:
23
+ a. If you use the old Sencha Command v2, configure Ext.Loader path:
24
24
25
+ Ext.Loader.setConfig({
26
+ enabled: true,
27
+ paths: {
28
+ 'Ext.ux.Router': 'lib/Router.js'
29
+ }
30
+ });
25
31
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:
32
33
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 />
33
42
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):
35
44
36
45
Ext.application({
37
46
name: 'App',
@@ -55,7 +64,7 @@ It comes with:
55
64
}
56
65
});
57
66
58
- 5 . Create your controllers and actions according to your routes;
67
+ 3 . Create your controllers and actions according to your routes;
59
68
60
69
Ext.define('App.controller.Home', {
61
70
extend: 'Ext.app.Controller',
You can’t perform that action at this time.
0 commit comments