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

[eluser]malcomhfc[/eluser]
$user = $this->ion_auth->user()->row();

does this work for the logged in user running the function? What im doing is
Code:
'comment' => $this->comment_m->getWebsite((array('doUser' => $user->id))));

what its supposed to do is get all the records with field id matching the user id.

What actually seems to happen is that it defaults to user 1. The function seems to work but i think im using wrong ion_auth code since it seems to think id 1.

Was just wondering if there was another bit of code to use? If not only one way to learn to debug, right? Big Grin

--think its best for me to download version 1. Smile

thanks. Smile


Messages In This Thread
Ion Auth - Lightweight Auth System based on Redux Auth 2 - by El Forum - 05-27-2011, 05:05 PM



Theme © iAndrew 2016 - Forum software by © MyBB