Welcome Guest, Not a member yet? Register   Sign In
Online Users library Addin
#1

(This post was last modified: 01-24-2016, 05:27 PM by moshair.)

Hello,

I am trying to use the Online Users library at:

https://github.com/bcit-ci/CodeIgniter/w...line-Users

In config/autoload.php I set:

Code:
$autoload['libraries'] = array('database','session','onlineusers');

I use Codeigniter v3.0.4

The problem is in set_data() it is not working, I use "Authme Authentication Library"
* @author Gilbert Pellegrom
* @LinK http://dev7studios.com
* @version 1.0

I added the code to the libraries/Authme.php

Code:
$this->CI->onlineusers->set_data(array('username'=>$user->username,'id'=>$user->id), 1);

Onlineusers.php, and Authme.php are attached. Can someone help me?

Also I tried to use set_data in a controller; it is not working! Huh

Regards,

Attached Files
.zip   Onlineusers_ci_3b.zip (Size: 5.22 KB / Downloads: 296)
Reply


Messages In This Thread
Online Users library Addin - by moshair - 01-22-2016, 08:58 AM



Theme © iAndrew 2016 - Forum software by © MyBB