【问题标题】:Hybridauth on Codeigniter Could not load the Hybrid_Auth classCodeigniter 上的 Hybridauth 无法加载 Hybrid_Auth 类
【发布时间】:2020-09-10 23:37:49
【问题描述】:

我已经通过 composer 安装了hybridauth,然后按照here 给出的步骤进行操作,但总是出现以下错误:

Could not load the Hybrid_Auth class

有什么解决办法吗?

【问题讨论】:

  • 你能告诉我们你是在哪一步得到这个错误的吗?
  • 这与 Composer 或 Github 有什么关系?有什么代码可以分享吗?

标签: codeigniter class github composer-php hybridauth


【解决方案1】:

应用程序/composer.json

{
   "require" : {
     "hybridauth/hybridauth" : "~3.0"
   },
   "config": {
     "platform": {
       "php": "X.X.XX" //SET your php version
     }
  }
}

并更改配置文件application/config/config.php

$config['composer_autoload'] = TRUE;

【讨论】:

    【解决方案2】:

    用途:

    $this->load->library('hybridauth');
    

    在您的控制器中加载库。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-12-23
      • 2013-05-14
      • 2015-05-18
      • 1970-01-01
      • 2021-09-02
      • 2011-06-14
      • 2015-06-08
      相关资源
      最近更新 更多