0
Je suis nouveau dans Sencha j'ai créécomment travailler avec sencha Php
var genres = new Ext.data.Store({ autoLoad: true,
proxy: {
url: '../www/App/stores/genres.php'
,callbackKey: "callback"
, type:'ajax',
reader:{
type:'json',
root:'rows'
},
callback:function(data){
alert(data);}
},
fields:[{name:'ii',type: 'int'},{name:'genre_name',type:'string' }]
});
le fichier php crée un fichier JSON, mais je ne peux pas y accéder si je crée le fichier JSON au lieu, il fonctionne très bien ce qu'il faut faire ? help