alfcm, deberias asignarle un error a response
Código PHP:
Ver original...
$response = new stdClass();
if ($misession->conectado == 1) {
...
$response->page = $page;
$response->total = $total_pages;
$response->records = $count;
...
} else {
$response->error = 'KO';
$response->message = 'Not logged in!';
}
$this->_helper->json($response);
y en tu js evaluarlo:
Código Javascript
:
Ver originaljQuery("#identifier").jqGrid({
...
loadComplete: function(data){
if(data.error){
location.href='http://localhost/ventas/public/index'
}
}
...
});
Salu2.