$services = $this->db->get_where('services',['status'=>1])->result();
$employees_multiselect = array();
foreach ($services as $result) {
$employees_multiselect[$result->id] = $result->name;
}
$this->crud->field_type('project_type', 'multiselect', $employees_multiselect);
$employees_multiselect = array();
foreach ($services as $result) {
$employees_multiselect[$result->id] = $result->name;
}
$this->crud->field_type('project_type', 'multiselect', $employees_multiselect);
0 comments:
Post a Comment