Hi there I am having an issue: The export and print buttons doesnt work when I include a where method into my controller function, is there a way to fix it?.
Thanks!
Here is the code of my controller.
$fechainicio = $this->input->post('fechainicio'); $fechafin = $this->input->post('fechafin'); $crud = new grocery_CRUD(); $crud->where('fksitio',$_SESSION['site']); $crud->where('fecha >=',$fechainicio); $crud->where('fecha <=',$fechafin); $crud->set_table('formatos'); $crud->set_field_upload('adjunto','assets/uploads'); $crud->columns('fksitio', 'fecha', 'resultado','comentarios','adjunto'); $crud->edit_fields('fksitio', 'fecha', 'resultado','comentarios','adjunto'); $crud->display_as('fksitio','Sitio');$crud->display_as('adjunto','Archivo'); $crud->set_language("spanish"); $crud->set_primary_key('nombre','sitios'); $crud->set_relation('fksitio','sitios','nombre'); $output = $crud->render(); $data['username'] = $session_data['username']; $data['level'] = $session_data['level']; $this->load->view('CRUD_Formatos.php', $output);