title: Load library by passing parameter to constructor in codeigniter
body: <p>I am using codeigniter. I defined a library in code-igniter and is expecting a parameter in its constructor.This is my library code -</p>
  
  <pre><code>################# [My Library Code Test_lib.php ] ########################
  &lt;?php
  class Test_lib
  {
  var $params;
  public function __construct($params)
  {
      $this-&gt;params = $params;
      echo $this-&gt;params;
  }
  }
  </code></pre>
  
  <p>In codeigniter documentation, it is mentioned that you can pass the parameter in the second argument.
  So,I am initializing it from controller as below -</p>
  
  <pre><code>&lt;?php
  class Test_cont extends CI_Controller {
  function __construct()
  {
      parent::__construct();
  }
  
  function test()
  {
      $params = "abc";
      $this-&gt;load-&gt;library("test_lib",$params);
  }
  }   
  </code></pre>
  
  <p>I am getting following error - </p>
  
  <p>A PHP Error was encountered Severity: Warning Message: Missing argument.....</p>
  
  <p>Please assist.</p>