CodeIgniter store session data in variable and pass it to another function -


i want store information of user if submits form, in order display in function able know did action.

here 1st function

public function view() {      $page = 'listevisiteurs';      $comptable = array();     $compt= array();     $message = array();      if ($this->input->post()) {          $mois = $this->input->post("mois");         $nom = $this->input->post("nom");          $session_data = $this->session->userdata('logged_in');         $data['nom'] = $session_data['nom'];          $comptable = array($data['nom'] => $mois);         ........         }          $compt = array('fields' => array());         foreach ($comptable  $key => $label) {             $compt['fields'][] = array(                 'key' => $key,                  'label' => $label              );         }         ...... 

here second one

    public function get_visiteursmep() {     $this->load->view('templates/header');      $data['visiteur_mep'] = $this->modele_suivre_paiement->get_visiteursmep();      $this->load->view("suivrepaiement/listevisiteursmep", $data); } 

can me out?


Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -