unset_add

void unset_add()
Quick Description: Unsets the add operation

Unsets the add operation - A user cannot add or insert records from the CRUD to database

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