In case you've missed it, you are looking at an older version of the website. Checkout our latest version, we promise you will love it 😍

unset_clone

void unset_clone()
Quick Description: Unsets the clone operation
Available for version >= 1.6.1

Unsets the clone operation - A user cannot clone records from the CRUD

Example:

function example_with_unset_clone() {
    $crud = new grocery_CRUD();
 
    $crud->set_table('employees');
    $crud->set_relation('officeCode','offices','city');
    $crud->display_as('officeCode','Office City');
    $crud->set_subject('Employee');
    $crud->unset_clone();
 
    $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