Accueil.php 488 Bytes
Newer Older
Nathan ROCHER's avatar
Nathan ROCHER committed
1
<?php
2
class Accueil extends CI_Controller {
Nathan ROCHER's avatar
Nathan ROCHER committed
3
4
5
  
    public function __construct(){
        parent::__construct();
Nathan ROCHER's avatar
Nathan ROCHER committed
6
        $this->load->model("AccueilModele");
Nathan ROCHER's avatar
Nathan ROCHER committed
7
8
9
        $this->load->helper("url_helper");
    }
  
Nathan ROCHER's avatar
Nathan ROCHER committed
10
    public function index() {
11
        echo "bonjour";
Nathan ROCHER's avatar
Nathan ROCHER committed
12
    }
kylian lecomte's avatar
up    
kylian lecomte committed
13
14
15
16
17
18
19
20

    public function showAccueil(){
        if(isset($_SESSION['email'])){
            $this->load->view('accueil/accueil.html');
        } else {
            $this->load->view('auth/connexion.html');
        }
    }
Nathan ROCHER's avatar
Nathan ROCHER committed
21
}