Hybridauth on Codeigniter Could not load the Hybrid_Auth class

241 views Asked by At

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?

2

There are 2 answers

0
Mohammad Imran On

Use:

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

in your controller to load the library.

0
ShiRO KRED On

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;