mirror of
https://grond.iut-fbleau.fr/stiti/SAE_2.02
synced 2024-12-29 18:12:18 +01:00
17 lines
404 B
PHP
17 lines
404 B
PHP
<?php
|
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
|
|
|
class Cover_model extends CI_Model {
|
|
|
|
public function __construct() {
|
|
parent::__construct();
|
|
$this->load->database();
|
|
}
|
|
|
|
public function get_covers() {
|
|
$query = "SELECT id, jpeg FROM cover LIMIT 4";
|
|
$result = $this->db->query($query);
|
|
return $result->result_array();
|
|
}
|
|
}
|
|
?>
|