if($data['params']['by'] == "date" && $data['params']['cnstr_type'] == "1"){
$this->load->view('profile/report_view/page1', $data);
} elseif($data['params']['by'] == "date" && $data['params']['cnstr_type'] == "2") {
$this->load->view('profile/report_view/page2', $data);
} elseif($data['params']['by'] == "week" && $data['params']['cnstr_type'] == "1") {
$this->load->view('profile/report_view/page3', $data);
} elseif($data['params']['by'] == "week" && $data['params']['cnstr_type'] == "2") {
$this->load->view('profile/report_view/page4', $data);
}
有没有更好的方法来改进这段代码
子衿沉夜
明月笑刀无情