Welcome Guest, Not a member yet? Register   Sign In
using the $this->table->generate
#1

[eluser]alvaroeesti[/eluser]


Hi,


I am on to pagination and here is the stuff:


In the model, after a long query I return:


Code:
$query = $this->db->get();
  return $query->result();

Then, in the Controller, I have:


Code:
$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


Code:
<?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


Messages In This Thread
using the $this->table->generate - by El Forum - 10-12-2012, 10:24 AM
using the $this->table->generate - by El Forum - 10-12-2012, 03:19 PM
using the $this->table->generate - by El Forum - 10-12-2012, 05:04 PM
using the $this->table->generate - by El Forum - 10-12-2012, 07:35 PM
using the $this->table->generate - by El Forum - 10-13-2012, 12:10 AM
using the $this->table->generate - by El Forum - 10-13-2012, 01:06 PM
using the $this->table->generate - by El Forum - 10-13-2012, 01:14 PM



Theme © iAndrew 2016 - Forum software by © MyBB