10-03-2009, 08:31 AM
[eluser]Unknown[/eluser]
Hi,
I am trying to pass entries drom db.table using json_encode() to am ExtJS grid:
Using firebug i get the fallowing error when loading the view:
http://localhost/softprofile/index.php/main?_dc=1254578827887 404 not found
My data store for the grid looks like this:
I am new to codeigniter and extjs. What i am doing wrong.
Help me out please!
Thanks!
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/main?_dc=1254578827887 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!