-1

I have installed hybridauth via composer and then followed the steps given here, but always get the following error:

Could not load the Hybrid_Auth class

Any solution to this?

bemeyer
  • 6,154
  • 4
  • 36
  • 86

2 Answers2

0

Use:

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

in your controller to load the library.

double-beep
  • 5,031
  • 17
  • 33
  • 41
0

application/composer.json

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

and change config file application/config/config.php

$config['composer_autoload'] = TRUE;