Hi all,
when i'am delete on grid, data show error :
error :
{"success":true,"success_message":"
Your data has been successfully deleted from the database.<\/p>"}
my controller:
public function add_master_barang() { try{ $crud = new grocery_CRUD(); $crud->set_theme('flexigrid'); $crud->set_table('master_barang'); //dropdownlist satuan //https://stackoverflow.com/questions/25670147/grocery-crud-field-type-dropdown-with-custom-array-data $this -> db -> select ('code,description'); $this->db->where('fk_lookup_grp =3'); $query = $this -> db -> get('lookup'); $finalArray = array(); foreach ($query->result_array() as $row) { $finalArray[$row['code']] = $row['description']; } //dropdownlist satuan $this -> db -> select ('ID_SUPPLIER,PERUSAHAAN'); $query = $this -> db -> get('supplier'); $supplierArray = array(); foreach ($query->result_array() as $row) { $supplierArray[$row['ID_SUPPLIER']] = $row['PERUSAHAAN']; } $crud->field_type('satuan','dropdown', $finalArray); $crud->field_type('supplier','dropdown', $supplierArray); $crud->required_fields('kode_barang','nama_barang','satuan','netto','supplier'); // $crud->unset_jquery(); // $crud->unset_jquery_ui(); $output = $crud->render(); $output->title = "Form Input Master Barang"; $output->meta_keywords = "Something 2"; $this->_example_output($output); }catch(Exception $e){ show_error($e->getMessage().' --- '.$e->getTraceAsString()); } }
in database data success to delete,
any idea for this problem?