title: Adding google api client to codeigniter
body: <p>I want to upload files to google drive using php in codeigniter. First of all i am trying to integrate google api client to codiginator.</p>
  
  <p>I have uploaded all the files in to my third_party folder.
   it look like this</p>
  
  <p><img src="https://i.stack.imgur.com/zvnfL.png" alt="enter image description here"> </p>
  
  <p>I i have created a file called <code>google.php</code> inside my <code>libraries</code> folder</p>
  
  <p><strong>google.php file</strong></p>
  
  <pre><code>        &lt;?php
          if (!defined('BASEPATH')) exit('No direct script access allowed');
          set_include_path(APPPATH . 'third_party/' . PATH_SEPARATOR . get_include_path());
          require_once APPPATH . 'third_party/Google/Client.php';
  
          class Google extends Google_Client {
              function __construct($params = array()) {
                  parent::__construct();
              }
          } 
  
          ?&gt;
  </code></pre>
  
  <p>Then i loaded the library in my home controller like this </p>
  
  <pre><code>        function __construct() {
              parent::__construct();
  
            //session, url, satabase is set in auto load in the config
              $this-&gt;load-&gt;model('Home_model', 'home');
              $this-&gt;load-&gt;library('pagination');
              $this-&gt;load-&gt;library('google');
  
          }
  </code></pre>
  
  <p>After loading the google library none of the functions inside home controllers are working. Every thing just shows a blank page.</p>
  
  <p>And Inside the home controller i have a function 'test_lib'</p>
  
  <pre><code>    function test_lib(){
  
          echo $this-&gt;google-&gt;getLibraryVersion(); 
     }
  </code></pre>
  
  <p>When i load the page . i get a black page no errors or showing.</p>
  
  <p>Can someone help me to add the google api client library to codeigniter. Tnx.</p>