setThemePath
setThemePath(string $themePath)
setThemePath
is used when we want to change the folder that the theme exists. This is usually a case when we need to create a custom theme that will not be included at the default core of Grocery CRUD.
To change the default theme path is easy. For example:
$crud->setThemePath('/my/custom/theme/path/')
You can see a full example below:
$crud->setTable('customers');
$crud->setSubject('Customer', 'Customers');
$crud->columns(['customerName','phone','addressLine1','creditLimit']);
$crud->setTheme('Cyborg');
$crud->setThemePath('private/themes/');
$output = $crud->render();