Hi everyone, I am trying to integrate the google api to Codeigniter 3.x but I cannot solve the problems.
I have a copy of google / apiclient in the libraries folder
I have a file called google.php in the libraries folder
I have a controller called Google in the controllers folder
libraries/google.php
PHP Code:
<?php
if (!defined('BASEPATH'))
exit('No direct script access allowed');
require_once APPPATH . 'Google/Client.php';
class Google extends Google_Client {
function __construct($params = array()) {
parent::__construct();
}
}
Controllers/Google.php
PHP Code:
<?php defined('BASEPATH') or exit('No direct script access allowed');
class Google extends CI_Controller
{
public function __construct() {
parent::__construct();
$this->load->library('google');
}
public function index()
{
echo $this->google->getLibraryVersion();
}
}
The problem I have is that when entering the browser the Google controller gives me the error:
"
Unable to locate the specified class: Session.php"
How can I solve this error?
Is there a library to use google?