unset_edit
void unset_edit()
Quick Description: Unsets the edit operation
Unsets the edit operation - A user cannot edit or update records from the CRUD
Example:
function employees_delete_management() { $crud = new grocery_CRUD(); $crud->set_theme('datatables'); $crud->set_table('employees'); $crud->set_relation('officeCode','offices','city'); $crud->display_as('officeCode','Office City'); $crud->set_subject('Employee'); $crud->unset_add(); $crud->unset_edit(); $output = $crud->render(); $this->_example_output($output); }
Note: The below example is an iframe so it might appeared with a scroll bar. If you like you can view the example
on a new tab