Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (18 sloc) 0.456 kb
<?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.