title: Access and change a variable in model class in Codeigniter
body: <p>I want to access and change a variable already set in a model class in codeigniter.</p>
  
  <pre><code>CLASS m_example extends CI_Model{
  var $A;
  public function __construct(){
  $this-&gt;A=21;
  }
  public function check_v()
  {
  return $this-&gt;A;
  }
  }
  </code></pre>
  
  <p>So I want to change the variable $A before calling the function check_v() in a controller.</p>
  
  <p>thanks!</p>