User_id

34 views
Skip to first unread message

Gabriele

unread,
Jul 13, 2014, 1:14:27 PM7/13/14
to uf...@googlegroups.com
Hi,
just a (very stupid) info: how can I obtain the user_id of a session using the class?

Sorry, but I'm becoming crazy to understand how.

Thanks


Gabriele

Pablo Tejada

unread,
Jul 13, 2014, 1:26:43 PM7/13/14
to uf...@googlegroups.com
Hello Gabriele,

Are you using a pre v1.0 of the class? If so then you can get the through the public id property of the class instance OR $user->data['user_id'].

For v1.0.x the DB column is simply ID instead of user_id so you can get the user by accessing the ID property of the User instance.


--
Project's home page http://ptejada.com/projects/uFlex/
---
You received this message because you are subscribed to the Google Groups "uFlex" group.
To unsubscribe from this group and stop receiving emails from it, send an email to uflex+un...@googlegroups.com.
To post to this group, send email to uf...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/uflex/ac89f214-0288-4876-93d4-b9dc7471f100%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages