本文整理汇总了PHP中Admin_Controller::getDepartment方法的典型用法代码示例。如果您正苦于以下问题:PHP Admin_Controller::getDepartment方法的具体用法?PHP Admin_Controller::getDepartment怎么用?PHP Admin_Controller::getDepartment使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Admin_Controller
的用法示例。
在下文中一共展示了Admin_Controller::getDepartment方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: edit
public function edit($cid)
{
$data['star_level_array'] = $this->config->item('star_level');
$data['nurse_service_status_array'] = $this->config->item('nurse_service_status');
$data['nurse_service_level_array'] = $this->config->item('nursing_level');
$data['hospital_array'] = parent::getHospital();
$data['department_array'] = parent::getDepartment();
$data['carer'] = $this->carer_model->get_by_id($cid);
$carer_department_array = array();
$arr = $this->carer_model->get_departments_of_carer($cid);
foreach ($arr as $record) {
$carer_department_array[] = $record['did'];
}
$data['carer_department_array'] = $carer_department_array;
//var_dump($data);
$this->load->view('admin/header.html');
$this->load->view('admin/editCarer.html', $data);
$this->load->view('admin/footer.html');
}