SaeDEV2.2/CI3/application/controllers/Films.php
2024-06-16 01:04:54 +02:00

18 lines
441 B
PHP

<?php defined('BASEPATH') OR exit('No direct script access allowed');
class Films extends CI_Controller{
public function Controlefilms(){
$this->load->model('Model_site');
$films=$this->Model_site->get_films();
$data=array('films' => $films);
$this->load->view('header');
$this->load->view('films',$data);
$this->load->view('footer');
}
public function index() // point d'entré du site
{
$this->Controlefilms();
}
}