Loading google api client library in codeiniter

旧城冷巷雨未停 提交于 2019-12-06 07:47:24

I am assuming that you have autoload.php in application/third_party directory, and rest of the source in application/third_party/Google directory.

in the application/libraries/google.php remove this line.

set_include_path(APPPATH . 'third_party/' . PATH_SEPARATOR . get_include_path());

now the code google.php will be

<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');

require_once APPPATH . 'third_party/Google/Client.php';

class Google extends Google_Client {
    function __construct($params = array()) {
        parent::__construct();
    }
}

This will get rid of that error.

Please try this way load your libraries :include_once APPPATH . "libraries/third_party/Google/Client.php";

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!