查看代码:
<a href="<?php echo base_url();?>projects/more_details/<?php echo $res->project_name;?>/<?php echo $res->id;?>">More Details</a>
控制器代码:
$project = $this->uri->segment(3);
$id = $this->uri->segment(4);
$data['visits'] = $this->projectsModel->list_visits($id);
$data['bills'] = $this->projectsModel->list_bills($id);
$data['project'] = $project_name;
$this->load->view('projects/more_details.php',$data);
当我单击锚标记时,它将继续重新加载more_details.php
。任何帮助将不胜感激。