控制器我想根據控制器重定向表單提交明智如何調用兩個不同的控制器一種觀點認爲,將用戶重定向根據笨
function list_mapdemand($id)
{
$data['titlte'] = "mapdemand";
$data['demand_id'] = $id;
$data['get_map_demand'] = $this->demands_model->get_exist_demand_map_from_prospect($id);
//print_r($data['get_map_demand']);
//exit;
//print_r($data['get_map_candidate']);
$data['get_mapped_demand'] = $this->demands_model->get_exist_prospective_candidate($id);
$data['demand_results'] = $this->demands_model->get_demand_details($id);
$data['candidates'] = $this->demands_model->get_candidates($id, $data['get_map_demand']);
//print_r($data['candidates']) ;
$this->load->view("list_map_demand_to_candidate",$data);
}
function list_search_mapdemand($id)
{
$data['titlte'] = "mapdemand";
$data['demand_id'] = $id;
$data['get_map_demand'] = $this->demands_model->get_exist_demand_map_from_prospect($id);
//print_r($data['get_map_demand']);
//print_r($data['get_map_candidate']);
$data['get_mapped_demand'] = $this->demands_model->get_exist_prospective_candidate($id);
$data['demand_results'] = $this->demands_model->get_demand_details($id);
$data['candidates'] = $this->demands_model->get_candidates($id, $data['get_map_demand']);
//print_r($data['candidates']) ;
$this->load->view("list_map_demand_to_candidate",$data);
}
一個控制器將在搜索列表中使用,另一個是正常名單。我必須根據控制器明智地重定向頁面,但必須控制一個視圖頁面。對於ADD,EDIT,VIEW。添加後必須去提到的控制器。