title: Is there a difference between the method of helper and library are called upon in code igniter?
body: <p>I am getting little bit confused, the way the methods of library and helper are used in code igniter. I am still learning code igniter.</p>
  
  <p>CONTROLLER</p>
  
  <pre><code>function index(){
      $this-&gt;load-&gt;helper('text');
      $this-&gt;load-&gt;library('auth'); //custom library
  
      $data['string'] = 'this is sample ..... this is sample';
      $this-&gt;load-&gt;view('article', $data);
  }
  </code></pre>
  
  <p>VIEW </p>
  
  <pre><code>&lt;?php 
  if(is_logged_in()){    //is_logged_in() is the method from the library, 'auth'
      echo 'You are logged in';
  }
  &lt;p&gt;&lt;?php echo word_limiter($string, 10); ?&gt;&lt;/p&gt; &lt;!--word_limiter() is the method from the helper, 'text' --&gt;
  </code></pre>
  
  <p>In the above view file, the helper method <code>word_limiter()</code> works fine. But the method <code>is_logged_in()</code> does not work. But if I do (<code>$this-&gt;auth-&gt;is_logged_in()</code>), it will work. </p>
  
  <p>But why the method from helper i.e. <code>word_limiter()</code> does not have to be written like this (<code>$this-&gt;text-&gt;word_limiter()</code>).</p>
  
  <p>Is there a difference between the method of helper and library are called upon ?  </p>