ingkiang
20 Sep 2012, 1:57 AM
im new to ext js, im having problem getting data from ajax to php
i check with firebug in the post tab, there is data with json format but its not available in the php global variables like $_POST, $_REQUEST and $_GET
Ext.define('AM.store.Users', {
extend: 'Ext.data.Store',
model : 'AM.model.User',
autoLoad: true,
proxy: {
type: 'ajax',
api: {
read: 'data/users.php',
update: 'data/updateUser.php'
},
reader: {
type: 'json',
root: 'users',
successProperty: 'success'
}
}
});
i check with firebug in the post tab, there is data with json format but its not available in the php global variables like $_POST, $_REQUEST and $_GET
Ext.define('AM.store.Users', {
extend: 'Ext.data.Store',
model : 'AM.model.User',
autoLoad: true,
proxy: {
type: 'ajax',
api: {
read: 'data/users.php',
update: 'data/updateUser.php'
},
reader: {
type: 'json',
root: 'users',
successProperty: 'success'
}
}
});