title: How to load Omnipay to Codeigniter project
body: <p>I have tried adding <code>require_once 'vendor/autoload.php';</code> on index.php in root folder but that  didn't work I got <code>Fatal error: Class 'Omnipay' not found</code>. Also adding <code>use Omnipay\Omnipay;</code> causing this error:</p>
  
  <pre><code>A PHP Error was encountered
  
  Severity: Notice
  
  Message: Use of undefined constant CURLOPT_CONNECTTIMEOUT - assumed 'CURLOPT_CONNECTTIMEOUT'
  
  Filename: Common/AbstractGateway.php
  
  Line Number: 208
  </code></pre>
  
  <p>I have used composer to install omnipay plugin.
  I am not sure how to properly load <a href="https://github.com/omnipay/omnipay" rel="nofollow">omnipay</a> in codeigniter controller?</p>