*庫正在調用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;
}
你的問題是缺乏信息。請告訴它第二個功能 –