title: Codeigniter/ PHP - using global variables in a self made library
body: <p>I've made my own library in codeigniter and I have multiple functions with in the library. </p>
  
  <p>Now these functions refer to a group of global variables. </p>
  
  <p>Now what I've done inside the class is declare variables by saying <code>protected $myvar;</code> but when I refer to these variables within my functions,</p>
  
  <p>I get <code>errors saying $myvar is undefined</code>... Please help...</p>