⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠


profile picture

Export and Print Not working with GET and POST Data


  • profile picture
  • Member

Posted 09 March 2019 - 10:24 AM


Hello Sir,

I just Starting Using GROCERY CRUD

I like it a lot

but I am facing Some Issues

The First ONe is

When I am using Export and Print with GET and POST data in Function It is showing no Data


I am Using a Form which sends a actionrequest to Controller-->Function with get data in URL

It is showing the Data in Table but when I am clicking on Print It Shows Empty

I have verified that this error is due to I am using GET Data in Function and Print is not taking that GET Data


Case 1: When Print Not Showing any Data

Attachment:- 1.png


Case 2:- Print Showing Data when I add "?customer_id=1" in URL

Attachment:- 2.png

This Shows that due to GET data not being sent from function to Print Button URL


Please suggest a solution for this



Below is my Controller Code


class pending_list extends CI_Controller {
function __construct() {
public function callback_date($val, $row)
        return date('d-m-Y', strtotime($val));
function index() {
$data['customers'] = $this->form_model-> get_customers();
$data['sellers'] = $this->form_model-> get_sellers();
public function _example_output($output = null)
public function bill_management()
    $crud = new grocery_CRUD();
    $seller_id = $this->input->get('seller_id');
       $customer_id = $this->input->get('customer_id');
       $paid = $this->input->get('payment_status');
      // $crud->where($where);
       $permission = $this->login_model->permission();
       echo "I think you shouldn't be here...";
       //and we can force a login to the user with
$crud->callback_column('bill_date', array($this, 'callback_date'));
    $output = $crud->render();