title: CodeIgniter: how to pass values from a specific function to another one
body: <p>I am trying to pass a value coming from a form using the method post from a function to another one.</p>
  
  <pre><code>class Send_value extends CI_Controller {
  
  public function main_page() {
       $data['user'] = $this-&gt;input-&gt;post('fullName');
        ...
  }
  
  
  public function welcome_page(){
    //Now I would like to pass $data['user'] here.      
  
  }
  }
  </code></pre>
  
  <p>How can I pass it in the second function?</p>