我的模型EmployeePersonal.php
中有一个名为get_employee_details
的函数,它接受一些参数并返回员工详细信息。这个功能用于我的许多控制器,我不想改变这个功能。
现在我的view
中有一个函数EmployeePersonalsController.php
,可以输出大约4000个结果。例如
$res = $this->EmployeePersonal->get_employee_details(
$office_id = $office_id,
$epf_no = $epf_no,
$employee_personal_id = $employee_personal_id,
$status = $status,
$permanent_district_id = $permanent_district_id,
$present_district_id = $present_district_id,
$department_id = $department_id,
$designation_id = $designation_id,
$category_id = $category_id,
$gender_type = $gender_type,
$offset = $offset,
$size = $size
);
我需要在view
函数中添加一个分页,有什么办法可以将$paginate
放在这里吗?