Hi,
I am on to pagination and here is the stuff:
In the model, after a long query I return:
$query = $this->db->get();
return $query->result();
Then, in the Controller, I have:
$data['datos'] = $this->resultados_search_M->devolverResultadosMapa($basement, $garage, $garden, $config['per_page'], $this->uri->segment(3) );
$this->load->view('resultados_search_V1', $data, $data_mapa );
And now, in the View, I wanted to generate the table, using that library, but…it complains that I cannot use a stnd obj class as an array . I realize yes, because usually we would loop through the array in the View, but I wanted to do it with this
<?php echo $this->table->generate($datos);?>
but is right up here where it gives the error. Is there anyway I can modify it either at the controller or at the model so that that call will work in the View?
thank u very much
regards
A
