public function customers_management()
{

$this->config->load('grocery_crud');
$this->config->set_item('grocery_crud_dialog_forms',true);
$this->config->set_item('grocery_crud_dialog_color','pink darken-4');
$this->config->set_item('grocery_crud_dialog_text_color','white');

$crud = new grocery_CRUD();
$crud->set_theme('mdb'); // magic code
$crud->set_table('customers');
$crud->columns('customerName','contactLastName','phone','city','country','salesRepEmployeeNumber','creditLimit');
$crud->display_as('salesRepEmployeeNumber','from Employeer')
->display_as('customerName','Name')
->display_as('contactLastName','Last Name');
$crud->set_subject('Customer');
$crud->set_relation('salesRepEmployeeNumber','employees','lastName');

$output = $crud->render();

$this->_example_output($output);
}
View Customer
Name:
Osaka Souveniers Co.
Last Name:
Kentary
ContactFirstName:
Mory
Phone:
+81 06 6342 5555
AddressLine1:
1-6-20 Dojima
AddressLine2:
 
City:
Kita-ku
State:
Osaka
PostalCode:
530-0003
Country:
Japan
from Employeer:
 
CreditLimit:
81200

Our Products


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

Sortable Tables Addon for WPBakery Page Builder (formerly Visual Composer)

Mosaic Gallery Addon for WPBakery Page Builder (formerly Visual Composer)