title: Pass variables between functions in model
body: <p>I have such function in model.</p>
  
  <pre><code>function news() 
  {
      $data = array(
          'title' =&gt; $this-&gt;input-&gt;post('title'),
          'date'  =&gt; $this-&gt;input-&gt;post('date'),
          'newstext' =&gt; $this-&gt;input-&gt;post('newstext'),
      );
      $this-&gt;db-&gt;insert('news', $data);
  }
  </code></pre>
  
  <p>And I want use this <code>$data['title']</code> in another function inside the same model. How can I do that?</p>