title: Google-api-php-client error:Codegniter Class 'Basecontroller' not found?
body: <p>api-php-client-2.0.2 in my Codegniter project, but have this error message "Class 'Basecontroller' not found?".</p>
  
  <p>This is my include files:</p>
  
  <pre><code>require_once "google-api-php-client-2.0.2/src/Google/Client.php";
  require_once "google-api-php-client-2.0.2/vendor/autoload.php";
  </code></pre>
  
  <p>Structure in my project application/controlers/google-api-php-client-2.0.2/</p>
  
  <pre><code>class Event extends Basecontroller {
  
          function createEvent() {
              // This is my Authconfig info when work and get info "client_secret.json".
  
              $client = new Google_Client();
              $client-&gt;setAuthConfig('/home/remarke/public_html/test.ibroker.bg/application/controllers/google-api-php-client-2.0.2/client_secret.json');
              $client-&gt;addScope(Google_Service_Drive::DRIVE);
              $redirect_uri = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'];
              $client-&gt;setRedirectUri($redirect_uri);
          }
  
      }
  </code></pre>
  
  <p>Where is problem? I have Fatal error "Class 'Basecontroller' not found" Why?</p>