menu
Home / Employees
Customers
Orders
Products
Offices
Films
Materialize CSS framework
Home / Employees
Customers
Orders
Products
Offices
Films
Buy
from
code
Sample Codes
public function offices_management()
{
$this->config->load('grocery_crud');
$this->config->set_item('grocery_crud_dialog_forms',true);
$this->config->set_item('grocery_crud_dialog_color','light-blue darken-4');
$this->config->set_item('grocery_crud_dialog_text_color','white');
$this->config->set_item('table_responsive','false');
try{
$crud = new grocery_CRUD();
$crud->set_theme('materializecss'); // magic code
$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);
}catch(Exception $e){
show_error($e->getMessage().' --- '.$e->getTraceAsString());
}
}
edit
Edit Office
City
*
Phone
AddressLine1
AddressLine2
State
Country
PostalCode
Territory
Loading, saving data...
check
Update changes
rotate_left
Save and go back to list
warning
Cancel