title: Fatal error when using REST client library in CodeIgniter
body: <p>I downloaded the Rest Client library from <a href="http://getsparks.org/packages/restclient/versions/HEAD/show" rel="nofollow">here</a> and the Curl library for CodeIgniter from <a href="http://getsparks.org/packages/curl/show" rel="nofollow">here</a>. </p>
  
  <p>I put both the libraries in a library folder and set them in auto load library.</p>
  
  <p>Now when I try to run the following code:</p>
  
  <pre><code>class Api extends CI_Controller { 
  
  function index()  
   {   
       $this-&gt;load-&gt;spark('restclient/2.1.0');
       $this-&gt;load-&gt;library('rest', array(  
             'server' =&gt; 'my rest service url', 
      ));
        $data = $this-&gt;rest-&gt;get();  
        echo '&lt;pre&gt;';
      print_r($data);
       }  
  }
  </code></pre>
  
  <p>I'm getting the following error:</p>
  
  <pre><code>Fatal error: Call to undefined method CI_Loader::spark() in /opt/lampp/htdocs/code/application/libraries/Rest.php on line 60
  </code></pre>
  
  <p>What am I doing wrong?</p>