没用关联。是有一个pid
<foreach name="res" item="re">
<ul class="mui-table-view">
<li class="mui-table-view-cell"><a href="{$news}?pid={$re.tagid}">{$re.tagname}</a>
</li>
</ul>
</foreach>
public function index(){
$cate=M("cmseasy_b_tag");
$result1=$cate->select();
var_dump($result1);
$this->assign("result1",$result1);
$this->assign("news",U("News/index"));
$this->display();
}
public function index(){
$details=M("cmseasy_announcement");
$id=$_GET['pid'];
$result=$details->where("pid='".$id."'")->select();
$this->assign("result",$result);
$this->display();
}
封不羁