setSkin

setSkin(string $skin)
Available from version >= 2.5.3

Choose between two skins: Bootstrap v3 and Bootstrap V4

The default skin is Bootstrap V3 or else you can set the skin as ‘bootstrap-v3’. In order to change the default skin to Bootstrap V4, you simply need to add the below line of code:

$crud->setSkin('bootstrap-v4');

You can find a full example below:


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

$output = $crud->render();

You can see the results of the above code below:

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