-
Unanswered: Loading data from a store in a List (Empty List)
Unanswered: Loading data from a store in a List (Empty List)
My model looks like this:
Ext.define("UnivMobile.model.News", {
extend: "Ext.data.Model",
config: {
fields: [ 'id', 'titre','contenu' ,'date']
}
});
My store ://the same as another store that works
Ext.define("UnivMobile.store.News", {
extend: "Ext.data.Store",
config:{
model: "UnivMobile.model.News",
proxy:{
type:'ajax',
url:'http://localhost/UniversiteCakeUploadEssai/news/web',
reader: {
type: 'json',
record:'News'
}
},
autoload:true
}
});
My view:
Ext.define("UnivMobile.view.News", {
extend:'Ext.List',
config: {
itemTpl:'{titre}',
store:'News'
}
});
But when I run T get an emty list (
Any help please??
-
Sencha - Senior Forum Manager
Any errors in the browser's console? What is the response like, is your store setup properly?
-
It's fine now
The error is that autoload must be autoLoad .
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us