set_theme
void set_theme(string $theme)
Quick Description: Set the CRUD theme - For now on there is only 'flexigrid' and 'datatables' . The default theme is flexigrid.
Set the CRUD theme - For now on there is only 'flexigrid' and 'datatables' . The default theme is flexigrid.
Note: flexigrid for now on is a server scripting grid and datatables is a client scripting grid.
Example:
function offices_management() { $crud = new grocery_CRUD(); $crud->set_theme('datatables'); $crud->set_table('offices'); $crud->set_subject('Office'); $crud->required_fields('city'); $crud->columns('city','country','phone','addressLine1','postalCode'); $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