public function employees_management()
{
$this->config->load('grocery_crud');
$this->config->set_item('grocery_crud_dialog_forms',true);
$this->config->set_item('grocery_crud_dialog_color','unique-color');
$this->config->set_item('grocery_crud_dialog_text_color','white');

$crud = new grocery_CRUD();

$crud->set_theme('mdb'); // magic code
$crud->set_table('employees')
->set_subject('Employee')
->columns('employeeNumber','firstName','lastName','email','officeCode','jobTitle')
->set_relation('officeCode','offices','city');

$crud->display_as('email','E-Mail')
->display_as('employeeNumber','ID')
->display_as('firstName','Name')
->display_as('lastName','Last Name');

$crud->required_fields('firstName','lastName');

$crud->add_fields('firstName','lastName','email','jobTitle', 'officeCode');

$crud->unset_bootstrap();

$output = $crud->render();

$this->_example_output($output);
}
View Employee
Last Name:
roshan
Name:
Mary
Extension:
 
E-Mail:
mpatterso@classicmodelcars.com
OfficeCode:
London
File url:
 
JobTitle:
VP Sales

Our Products


Price Table Monthly & Yearly Addon for WPBakery Page Builder (formerly Visual Composer)

Elegant Mega Addons for WPBakery Page Builder (formerly Visual Composer) Video Gallery Module

Gallery Bundle Addons for WPBakery Page Builder (formerly Visual Composer)