PDA

View Full Version : deftjs store inejction eroor



javapurna
20 Jun 2013, 5:30 AM
hi every one ,


the following error i am getting ,please any one face this .

if i am using sencha command to build project . if i am run the project it gives





Uncaught Deft.ioc.DependencyProvider.constructor(): Error while configuring rule for 'purna': unrecognized class name or alias: 'Exm.store.Purna' .



app.js
Ext.onReady(function(){

Ext.create("Exm.Application");
});


application.js




Ext.define("Exm.Application", {
extend: "Deft.mvc.Application",
requires: [ "Exm.view.Viewport"],

init: function() {
this.beforeInit();
Deft.Injector.configure({
purna : 'Exm.store.Purna'
});
return this.afterInit();
},





beforeInit: function() {
alert('berore init');
},

afterInit: function() {
Ext.tip.QuickTipManager.init();
alert('after init');
return Ext.create("Exm.view.Viewport");
}
});

slemmon
24 Jun 2013, 1:08 PM
I've no personal experience with DeftJS. Some of the other community members may very well have worked with it when building a project. Else you might also post DeftJS specific questions here if you haven't already:
https://groups.google.com/forum/#!forum/deftjs