unsetBackToList
unsetBackToList(void)
The method unsetBackToList
removes the "Back to List" button from form operations such as "Close" or
"Close modal on save" options. This is useful when you want to create standalone forms or when you want to restrict
navigation back to the list view.
The syntax is simple:
$crud->unsetBackToList();
This function is often used in combination with unsetList()
when you want to create forms that don't provide access to the datagrid view.
Full example with standalone form
$crud->setTable('customers');
$crud->setSubject('Customer', 'Customers');
// Create a standalone form by removing list operations
$crud->unsetBackToList();
$crud->unsetList();
$output = $crud->render();
The result is a form that operates independently without any connection to a datagrid view.