我正在使用twitterauth.php在codeigniter php中获取twitter数据。它给了我错误
Fatal error: Class 'Abraham\TwitterOAuth\Config' not found in C:\xampp\htdocs\twitter\application\config\twitteroauth.php on line 15
第15行是
13 namespace Abraham\TwitterOAuth;
14 use Abraham\TwitterOAuth\Util\JsonDecoder;
15 class TwitterOAuth extends Config
答案 0 :(得分:0)
您在我们的Codeigniter项目中缺少图书馆
您可以Download更正文件并将其添加到相关路径中。
文件路径 - ./application/
Folder - config
file name - twitter.php
Folder - controllers
file name - twtest.php
Folder - libraries
file name - twconnect.php
folder name - twitteroauth
File name - OAuth.php
File name - twitteroauth.php