Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (18 sloc) 456 Bytes
<?php
/**
* Para interactuar con la tabla hotels.
*/
class Hotel extends CI_Model {
function __construct() {
parent::__construct();
$this->load->database();
}
public function getAll() {
return $this->db->get('hotels')->result_array();
}
public function insertHotel($name, $value) {
$insert_values['name'] = $name;
$insert_values['value_reservation'] = $value;
return $this->db->insert('hotels', $insert_values);
}
}
Jump to Line
Something went wrong with that request. Please try again.