*库正在调用2个函数。当我第二次调用它时,选择第一个函数的数据。我想在第二个函数中重新加载库。如何在Codeignator中重新加载库?
public function impnewsdetail($ref) {
$url = array(
'base' => $ref,
'category' => ""
);
$this->load->library('crawler', $url);
$nd = $this->crawler->getNewsDetail();
$newsdetail = array(
'detail_heading' => $nd['detail_heading'],
'detail_tags' => $nd['detail_tags'],
'detail_date' => $nd['detail_date'],
'detail_image' => $nd['detail_image'],
'detail_image_detail' => $nd['detail_image_detail'],
'detail_text' => $nd['detail_text']
);
return $newsdetail;
}
你的问题是缺乏信息。请告诉它第二个功能 –