Good afternoon Guys I am stuck here in a problem and I couldn't resolve it so had to ask here.The problem is that i want to load two functions
function FETCH_DATA($HOTEL_ID){
$this->db->where(['hotel_id' => $HOTEL_ID]);
$DATA = $this->db->get('hotel_tbl');
return $DATA->result();
}
&
function FETCH_ASSOCIATION($HOTEL_ID){
$this->db->where(['hotel_id' => $HOTEL_ID]);
$ASSOCIATION = $this->db->get('hotel_association');
return $ASSOCIATION->result();
}
from AdminModel.php in my AdminController.php whose code is as following
function DESCRIPTION(){
$this->load->model('AdminModel');
$HOTEL_ID = $this->session->userdata('hotel_id');
$a['data'] = $this->AdminModel->FETCH_DATA($HOTEL_ID);
$this->load->view("Description", $a);
}
Any help would be appreciated!