Sending ExtJS datastore parameter to CI controller

Posted by Davi on Stack Overflow See other posts from Stack Overflow or by Davi
Published on 2010-03-15T10:53:20Z Indexed on 2010/03/15 10:59 UTC
Read the original article Hit count: 435

Filed under:
|

Hi all, I'm new 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..

© Stack Overflow or respective owner

Related posts about extjs

Related posts about codeigniter