Ext.direct submit n load の一般的なフォーム、load は正常に動作していますが、submit はエラーを返します。coz in post data in undefined
var _form = Ext.create('Ext.form.Panel', {
api: {
submit: submit, //actions I took from code that going above, and never mind what I ll write here. Its not a problem
load: load
},
baseParams: {
st_id: st_id,
id: id
},
paramsAsHash: true,
defaultType: 'textfield',
buttons: [{
text: 'Cancel',
handler: function() {
this.up('form').getForm().reset();
}
}, {
text: 'Save',
handler: function() {
var values = this.up('form').getForm().getValues();
this.up('form').getForm().submit({
success: function() {
grid.getStore().load();
}
});
this.up('form').getForm().reset();
}
}]
});
ヘッダーに、コンテンツ タイプが「application/json;」と書かれています。しかし、それ以外の場合は「application/x-www-form-urlencoded」ですが、最後は意味がありますよね? それは機能しますが、他の形で。これはすべて Kohana の下にあるため、コントローラーで何が起こっているかを明確に見ると、Extdirect Router で、このフォームには送信メソッドに関する情報がないことがわかります。