Jump to content

Pedro Bernal

Member Since 22 Jan 2014
Offline Last Active Feb 20 2015 12:35 AM

#10883 Issue whith export and print buttons

Posted Pedro Bernal on 13 March 2014 - 04:13 PM

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?.





Here is the code of my controller.

 $fechainicio = $this->input->post('fechainicio');
      $fechafin = $this->input->post('fechafin');
      $crud = new grocery_CRUD();
      $crud->where('fecha >=',$fechainicio);
      $crud->where('fecha <=',$fechafin);
      $crud->columns('fksitio', 'fecha', 'resultado','comentarios','adjunto');
      $crud->edit_fields('fksitio', 'fecha', 'resultado','comentarios','adjunto');
      $output = $crud->render();
      $data['username'] = $session_data['username'];
      $data['level'] = $session_data['level'];
      $this->load->view('CRUD_Formatos.php', $output);