开发者

Sending ExtJS datastore parameter to CI controller

开发者 https://www.devze.com 2022-12-22 19:10 出处:网络
I\'m ne开发者_运维技巧w to ExtJS and I\'m stuck with ExtJS datastore. I\'m using ExtJS with CodeIgniter and I want to send ExtJS datastore.load() parameter to my codeigniter\'s controller to process s

I'm ne开发者_运维技巧w to ExtJS and I'm stuck with ExtJS datastore. I'm using ExtJS with CodeIgniter and I want to send ExtJS datastore.load() parameter to my codeigniter's controller to process some query. How can I do that?

Here is my ExtJS datastore proxy:

var dataProxy = new Ext.data.HttpProxy({
    url: 'index.php/cStart/js_listPegawai/',
    method: 'POST'
});

and this is my controller code:

var $queryNama = "";
function js_listPegawai()
    {
        $this->load->model('MPegawai');
        $Pegawai = $this->MPegawai->listPegawai($queryNama);
    }

Thanks for any suggestions..


blahblahStore.load({
  params: {
    blahblah: 'blah'
  }
})
0

精彩评论

暂无评论...
验证码 换一张
取 消