Welcome Guest, Not a member yet? Register   Sign In
Ion Auth - Lightweight Auth System based on Redux Auth 2

[eluser]adityamenon[/eluser]
[quote author="digital_frog" date="1341602023"]

Funny how working for however long on a problem does so little, yet five minutes after asking the answer is discovered. Here is the solution:

$user = $this->ion_auth->user()->row();
$user_id = $user->id;[/quote]

Haha yes, ion_auth autoloads classes from the model when it receives requests for classes that do not exist in the library. So you need to assume the returned data will be in a CodeIgniter database object. Also, I'm not trying to flame you, but always read the Ionauth user guide + search the issue queues + this forum thread with google any time you see a sticky problem, instead of trying to solve it for hours. Chances are someone has already faced it and that will save you a lot of time Smile This is really not so obvious (even for me the advise troll) and people always tend to try and solve it for themselves!


Messages In This Thread
Ion Auth - Lightweight Auth System based on Redux Auth 2 - by El Forum - 07-06-2012, 06:06 PM



Theme © iAndrew 2016 - Forum software by © MyBB