plugin for opauth library (by uzyn)
PHP
Latest commit 516b0d5 Feb 19, 2013 @mcatm Merge pull request #2 from Abhra1992/master
Edited classes to mirror uzyn's original library
Permalink
Failed to load latest commit information.
opauth Edited classes to mirror uzyn's original library (latest commit) Feb 16, 2013
README.md readme May 31, 2012

README.md

Install

  1. 'opauth' folder to 'third_party' folder in CI.
  2. write path to plugins on controller

$this->load->add_package_path(APPPATH.'third_party/opauth/');

  1. you can write config on third_party config files

    $this->load->config('opauth'); $config = $this->config->item('opauth_{******}');

  2. initialize library

$this->load->library('opauth', $config);


Attension

  • when you initialize plugin and make it not to run, you have to add 'stop' to config array. because codeigniter's constructor has no 2nd argument.
  • and you have to remake around sessions in strategies. you can't use PHP native session, so you have to rewrite 'session_start()' to '$CI->load->library('session')'. (if you want, i show you my own strategy of twitter and facebook.)