Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter and ExtJS issue
#1

[eluser]Unknown[/eluser]
Hi,

I am trying to pass entries drom db.table using json_encode() to am ExtJS grid:

Code:
$clienti = array();
        
        foreach ($query->result_array() as $row)
        {
               $clienti[] = $row;
        }
        echo json_encode(array('clienti' => $clienti));

        $this->load->view('view');

Using firebug i get the fallowing error when loading the view:
http://localhost/softprofile/index.php/m...4578827887 404 not found

My data store for the grid looks like this:
Code:
var dataStore = new Ext.data.JsonStore({

          url:'main',

          root:'clienti',

          fields:['id', 'denumire', 'CUI', 'adresa']
        });

I am new to codeigniter and extjs. What i am doing wrong.

Help me out please!
Thanks!


Messages In This Thread
CodeIgniter and ExtJS issue - by El Forum - 10-03-2009, 08:31 AM
CodeIgniter and ExtJS issue - by El Forum - 10-04-2009, 08:17 PM
CodeIgniter and ExtJS issue - by El Forum - 10-05-2009, 06:14 AM
CodeIgniter and ExtJS issue - by El Forum - 10-05-2009, 06:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB