title: How to use namespaces in Codeigniter 3?
body: <p>I have tried doing all the above answers for namespaces, but it didn't worked so I thought to ask it again to get a solution.
  Now this is how I ideally used it in my Core PHP, it works perfect.</p>
  
  <pre><code>&lt;?php
  namespace Facebook\WebDriver;
  use Facebook\WebDriver\Remote\DesiredCapabilities;
  use Facebook\WebDriver\Remote\RemoteWebDriver;
  use Facebook\WebDriver\Firefox\FirefoxProfile;
  use Facebook\WebDriver\Firefox\FirefoxDriver; 
  use Facebook\WebDriver\Remote\LocalFileDetector; 
  require_once('vendor/autoload.php');
  
  
  $browser_name  = $_POST['browser_name'];
  </code></pre>
  
  <p>I need samething in Codeigniter As I have mentioned above I have downloaded the libraries files in third_party folder and I am using it like this,</p>
  
  <pre><code>&lt;?php
  namespace Facebook\WebDriver;
  use Facebook\WebDriver\Remote\DesiredCapabilities;
  use Facebook\WebDriver\Remote\RemoteWebDriver;
  use Facebook\WebDriver\Firefox\FirefoxProfile;
  use Facebook\WebDriver\Firefox\FirefoxDriver; 
  use Facebook\WebDriver\Remote\LocalFileDetector;
  
  
  class Webservice_controller extends CI_Controller 
  {
      public function __construct() 
      {
          parent::__construct();
          require_once(APPPATH.'third_party/vendor/autoload.php');
      }
  </code></pre>
  
  <p>Still it throws me this error:</p>
  
  <pre><code>&lt;div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;"&gt;
      &lt;h4&gt;A PHP Error was encountered&lt;/h4&gt;
      &lt;p&gt;Severity: Warning&lt;/p&gt;
      &lt;p&gt;Message:  require(/var/www/html/mpdriver/application/libraries/Facebook/WebDriver/CI_Controller.php): failed to open stream: No such file or directory&lt;/p&gt;
      &lt;p&gt;Filename: config/config.php&lt;/p&gt;
      &lt;p&gt;Line Number: 538&lt;/p&gt;
      &lt;p&gt;Backtrace:&lt;/p&gt;
      &lt;p style="margin-left:10px"&gt;
              File: /var/www/html/mpdriver/application/config/config.php
          &lt;br /&gt;
              Line: 538
          &lt;br /&gt;
              Function: _error_handler
      &lt;/p&gt;
  </code></pre>
  
  <p>Any Solution to use namespaces in Codeigniter?</p>