0
Sencha Touch 2.4.0에서 라우팅을 구현하려고하지만 경로 변경 이벤트에서 기능을 시작할 수 없습니다. 내가 메인 컨트롤러 -이Sencha Touch 2.4.0에서 라우팅 구현
Ext.define('STPG.controller.Main', {
extend: 'Ext.app.Controller',
routes : {
'home' : 'onHome'
},
config: {
refs: {
},
control: {
}
},
//called when the Application is launched, remove if not needed
launch: function(app) {
},
onHome : function() {
console.log('home controller called');
}
});
는
Ext.Viewport.add(Ext.create('STPG.view.Main'));
this.redirectTo('home');
그 그 함수를 호출하지 trying-
views: [
'Main'
],
models: [],
controllers: ['Main'],
stores: [],
오전 app.js.