Threaded View

  1. #1
    Sencha User
    Join Date
    Dec 2011
    Vote Rating
    rossmurphy is on a distinguished road


    Default Answered: Proxy in Model vs. Store

    Answered: Proxy in Model vs. Store

    Does anyone know the difference between using a proxy in a model vs. using a proxy in a store?

    Ext.regModel('User', {
        fields: ['id', 'name'],
        hasMany: {model: 'Order', name: 'orders'},
        proxy: {
            type: 'ajax',
            url : 'src/demos/data/userData.json'

  2. Technically there really isn't a difference. The store will look for the proxy config on itself and if none is present look for it on the model. If you want to use Models by themselves (like for forms) then having the proxy on the model will allow you to still use the proxy.

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar