How to get user logged / where is it stored?

Discuss about Group-Office development here

Moderator: Developers

ikayoo
Posts: 17
Joined: Mon Oct 06, 2014 12:42 pm

How to get user logged / where is it stored?

Postby ikayoo » Thu Feb 12, 2015 9:39 am

Hey,

I would like to create a new module and need to know the name of the user logged. I don't understand how can I get the username like it has been done in the log module and where is it stored. :?:
fischli
Posts: 36
Joined: Tue Apr 22, 2014 10:06 am

Re: How to get user logged / where is it stored?

Postby fischli » Thu Feb 12, 2015 11:12 am

You ever tried GO::user()->username ?
Take a look into the User model in go/base/model/User.php for more properties.

Return to “Development Chats”

Who is online

Users browsing this forum: No registered users and 1 guest

cron