开发者

Sending ExtJS datastore parameter to CI controller

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜