SaeDEV2.2/CI3/application/controllers/Films.php

18 lines
441 B
PHP
Raw Normal View History

<?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();
}
}