2013-10-03 5 views
0

PHP 파일에서 데이터를 가져 오는 방법을 원격으로 찾을 수 있습니다. 부팅시 400 Bad Request 오류가 발생합니다. PHP에서 데이터 가져 오기

Ext.define('MM.model.otprModel', { 
extend : 'Ext.data.Model', 
xtype : 'otprmodel', 
config : { 
    fields : [ 

    { 
     name : 'id', 
     type : 'string' 
    }, { 
     name : 'f1', // Номер заказа 
     type : 'string' 
    }, { 
     name : 'f2', 
     type : 'string' 
    }, { 
     name : 'f3', 
     type : 'string' 
    }, { 
     name : 'f4', 
     type : 'string' 
    }, { 
     name : 'f5', 
     type : 'string' 
    }, { 
     name : 'f6', 
     type : 'string' 
    }, { 
     name : 'f7', 
     type : 'string' 
    }, { 
     name : 'f8', 
     type : 'string' 
    }, { 
     name : 'f9', 
     type : 'string' 
    }, { 
     name : 'f10', 
     type : 'string' 
    }, { 
     name : 'f11', 
     type : 'string' 
    }, { 
     name : 'f12', 
     type : 'string' 
    }, { 
     name : 'f13', 
     type : 'string' 
    }, { 
     name : 'f14', // Адрес 
     type : 'string' 
    }, { 
     name : 'f15', 
     type : 'string' 
    }, { 
     name : 'f16', 
     type : 'string' 
    }, { 
     name : 'f17', 
     type : 'string' 
    }, { 
     name : 'f18', 
     type : 'string' 
    }, { 
     name : 'f19', 
     type : 'string' 
    }, { 
     name : 'f20', 
     type : 'string' 
    } 

    ] 
}, 

fullName : function() { 
    var d = this.data, names = [ 
    // d.firstName, 
    (!d.f1 ? "" : d.f1 + "") // , 
    // d.adress 
    ]; 
    return names.join(" "); 
} }); 

여기 상점 :

여기
Ext.define('MM.store.otprStore', { 
extend : 'Ext.data.Store', 

config : { 
    model : 'MM.model.otprModel', 
    sorters : 'f1', 
    grouper : { 
     groupFn : function(record) { 
      return record.get('f1')[0]; 
     } 
    }, 
    proxy: { 
       type: 'ajax', 
       url: 'http://192.168.1.10/SOAP/test.php' 
       }, 
       autoLoad: true, 
       root: { 
        text:'Array' 
        } 
       } 
      }); 

이 부팅 :

reloadButton : function(response, callback, scope) { 
    Ext.getStore('otprStore').load(); 

} 

난 단지 마스터 사전에 뭐라고 요 여기

모델이다. 미리 답변 해 주셔서 감사합니다.

Array(
[0] => Array 
    (
     [id] => 2043175 
     [mode] => cp 
     [f1] => (2043175) 
     [f2] => 2 
     [f3] => 1 
     [f4] => А-2 инжениринг 
     [f11] => 0 
     [f12] => 
     [f5] => пер. Загородный 3, 4/А-311 
     [f6] => 1 
     [f7] => 7.000 
     [f8] => 0.008 
     [f9] => по доверенности ММ 
     [f10] => 017-208-36-33 
     [f13] => Логвинович/Бадака 
     [f14] => Барановичи, улица Бадака, д.68/Б 
     [f15] => Барановичи 
     [f16] => сигнализаторы 
     [f17] => 290762695 
     [f18] => 
     [f19] => 
     [f20] => 1 
     [f21] => 
    ) 

어떻게 데이터를 읽는 방법을 가르쳐주세요 : 당신이 브라우저를 통해 보면

은 데이터의 유형을 끈다. 나는 나 자신을 이해할 수 없다.

답변