[eluser]caperquy[/eluser]
OK, there it is.
As you can see it is just a skeleton for the time being.
The first time the views are loaded through the index function.
The second time they are loaded through the essai function, and that is where the problem occurs.
<?php
class Accueil extends controller
{
function accueil()
{
parent::Controller();
/ load libraries
$this->load->helper(array('form', 'url'));
$this->load->model('modele_paroisses');
$this->load->library('form_validation');
/ Connexion à la base de données
$this->load->database();
session_start();
}
function index()
{
//Obtention de tous les codes postaux
$data['Codes_postaux']=$this->modele_paroisses->get_all_codes_postaux();
//Chargement gabarit 10 (temporaire)
$this->load->view('entete');
$this->load->view('navigation');
$this->load->view('trouver_paroisse');
$this->load->view('pied');
}
function essai()
{
$this->load->view('entete');
$this->load->view('navigation');
$this->load->view('trouver_paroisse');
$this->load->view('pied');
}