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

15 lines
420 B
PHP
Raw Normal View History

<?php defined('BASEPATH') OR exit('No direct script access allowed');
class Fiche extends CI_Controller{
public function view($id = 3){
$this->load->model('Model_site');
$film=$this->Model_site->get_fiche($id);
$actors=$this->Model_site->get_actors($id);
$data=array('film' => $film, 'actors' => $actors);
$this->load->view('header');
$this->load->view('fiche',$data);
$this->load->view('footer');
}
}