Google-api-php-client错误:找不到Codegniter类“ Basecontroller”?

时间:2018-06-20 08:05:50

标签: php codeigniter

我的Codegniter项目中的api-php-client-2.0.2,但出现此错误消息“找不到类'Basecontroller'?”。

这是我的包含文件:

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";

我的项目中的结构application / controlers / google-api-php-client-2.0.2 /

class Event extends Basecontroller {

        function createEvent() {
            // This is my Authconfig info when work and get info "client_secret.json".

            $client = new Google_Client();
            $client->setAuthConfig('/home/remarke/public_html/test.ibroker.bg/application/controllers/google-api-php-client-2.0.2/client_secret.json');
            $client->addScope(Google_Service_Drive::DRIVE);
            $redirect_uri = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'];
            $client->setRedirectUri($redirect_uri);
        }

    }

哪里有问题?我遇到致命错误“找不到类'Basecontroller'”为什么?

0 个答案:

没有答案