But i have a problem here on the set_relation function.
as written in the documentation :
function employees_management()
{
$crud = new grocery_CRUD();
$crud->set_theme('datatables');
$crud->set_table('employees');
$crud->display_as('officeCode','Office City');
$crud->set_subject('Employee');
$crud->set_relation('officeCode','offices','city');
$output = $crud->render();
$this->_example_output($output);
}
this code works for me but in my case i need another collumn from offices tables to be shown in the grid anyone can help me with this ?