Hi friends,
First off, let me say 'Thanks!' for writing this great piece of code.
Code:
function items() { try{ $crud = new grocery_CRUD(); $crud->set_theme('datatables'); $crud->set_table('items'); $crud->unset_fields(); $crud->unset_texteditor(); $crud->unset_add(); $crud->unset_delete(); $crud->unset_edit(); $crud->required_fields('id'); $output = $crud->render(); $this->output($output); }catch(Exception $e){ show_error($e->getMessage().' --- '.$e->getTraceAsString()); } }
^This is inside my controller, which does $this->load->view('file.php',$output) to output to the view (well, duh).
I have 2 tables in my database: auctions, and items. The exact same code works perfectly for "auctions," but only displays a blank page for "items."
The only thing I can think is that I might be maxing out some sort of limitation, since "auctions" is only 500+ records with 11 columns, but "items" is 220,000+ records with 17 columns.
Any help would be much appreciated! I have been pulling my hair out on this one all day!