title: codeigniter curl error
body: <p>I was trying out this piece of code and keep on getting this error
        function create(){</p>
  
  <pre><code>    $post = array();
  
      //get all the data from the form into an array
      $post = array(
                  'name' =&gt; $this-&gt;input-&gt;post('name'),
                  'abbrev' =&gt; $this-&gt;input-&gt;post('abbrev'),           
                  'long_name' =&gt; $this-&gt;input-&gt;post('long_name'),
                  'long_abbrev' =&gt; $this-&gt;input-&gt;post('long_abbrev'),
                  'url' =&gt; $this-&gt;input-&gt;post('url'),
                  'description' =&gt; $this-&gt;input-&gt;post('description')
                  );  
  
  
      //encode the data and set it as output to push to api
      $json_data=json_encode($post);
      $this-&gt;curl-&gt;post('http://localhost:8888/api/colleges', $json_data);
  </code></pre>
  
  <p>And this is the error i get</p>
  
  <p>Severity: Notice</p>
  
  <p>Message: Undefined property: Colleges::$curl</p>
  
  <p>Filename: controllers/colleges.php</p>