rnel
2 Nov 2012, 2:48 AM
hi,
I have an illegal token exception for this code (using a Ex.create in an Ext.define statement):
store : Ext.create('Ext.dtp.pdw.stores.User', {
storeId : 'usersStore',
autoLoad : true,
proxy : {
type : 'ajax',
url : 'users',
model : 'Ext.dtp.pdw.models.User',
reader : {
type : 'json',
root : 'users',
idProperty : 'id'
},
api : {
destroy : 'users/delete',
read : 'users',
update : 'users/update',
create : 'users/create'
}
}
}),
i have that error right after adding the
proxy : {
type : 'ajax',
url : 'users',
model : 'Ext.dtp.pdw.models.User',
reader : {
type : 'json',
root : 'users',
idProperty : 'id'
},
api : {
destroy : 'users/delete',
read : 'users',
update : 'users/update',
create : 'users/create'
}
}
as property in the create statement, i ddin't have thet error before. So, guys, what's the matter ? thanks.
I have an illegal token exception for this code (using a Ex.create in an Ext.define statement):
store : Ext.create('Ext.dtp.pdw.stores.User', {
storeId : 'usersStore',
autoLoad : true,
proxy : {
type : 'ajax',
url : 'users',
model : 'Ext.dtp.pdw.models.User',
reader : {
type : 'json',
root : 'users',
idProperty : 'id'
},
api : {
destroy : 'users/delete',
read : 'users',
update : 'users/update',
create : 'users/create'
}
}
}),
i have that error right after adding the
proxy : {
type : 'ajax',
url : 'users',
model : 'Ext.dtp.pdw.models.User',
reader : {
type : 'json',
root : 'users',
idProperty : 'id'
},
api : {
destroy : 'users/delete',
read : 'users',
update : 'users/update',
create : 'users/create'
}
}
as property in the create statement, i ddin't have thet error before. So, guys, what's the matter ? thanks.