如何转换此代码:
$_POST['search']['value']
if($_POST['length'] != -1)
($_POST['length'], $_POST['start'])
到Codeigniter 2.2
答案 0 :(得分:1)
if($this->input->post("search"){
$this->input->post("search")['value']; //$_POST['search']['value']
}
if($this->input->post("length") && $this->input->post("start")){
($this->input->post("length"),$this->input->post("start")) //($_POST['length'], $_POST['start'])
}
<强> Check Reference 强>