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 😍

Orders example

function orders_management()
{
    $crud = new grocery_CRUD();
 
    $crud->set_relation('customerNumber','customers','contactLastName');
    $crud->display_as('customerNumber','Customer');
    $crud->set_table('orders');
    $crud->set_subject('Order');
    $crud->unset_add();
    $crud->unset_delete();
 
    $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