如何使用这个 url localhost/pitch/action/task/1 ?1 = 音高 ID 请回答这个问题。谢谢你
这是我的代码控制器。
public function insert_task(){
$this->load->model("save");
$data['pitch_id'] = $this->input->post('pitch');
$data['date'] = $this->input->post('date');
$data['name'] = $this->input->post('name');
$data['description'] = $this->input->post('description');
$task = $this->save->insert_task_to_db($data);
if($task){
header('location:'.base_url()."action/task".$this->index());
}
}