我的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'”为什么?