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

15 lines
437 B
PHP
Raw Normal View History

<?php defined('BASEPATH') OR exit('No direct script access allowed');
class Evenement_info extends CI_Controller{
public function view($id){
$this->load->model('Model_site');
$event=$this->Model_site->get_evenement($id);
$com=$this->Model_site->get_commentaire($id);
$data=array('event' => $event, 'com' => $com);
$this->load->view('header');
$this->load->view('evenement_info',$data);
$this->load->view('footer');
}
}