单击时,codeigniter中的anchor标签会继续重新加载页面

时间:2018-08-14 10:25:01

标签: php

查看代码:

<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。任何帮助将不胜感激。

0 个答案:

没有答案