Basic Example

A very simple example to start with is the below 4 lines of code. These are the most common functions that you will use:

$crud->setTable('customers');
$crud->setSubject('Customer', 'Customers');
$crud->columns(['customerName','phone','addressLine1','creditLimit']);

$output = $crud->render();

Let's see what the above code will give us as a result:

More specifically let's describe what the functions are doing: