S
S
Stone-Studio2015-08-17 14:14:36
Kohana
Stone-Studio, 2015-08-17 14:14:36

How to get the id of the authorized user?

I need to get the id of the authorized user. I use Kohana framework, Auth module (driver - ORM). How?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ukolov, 2015-08-17
@Stone-Studio

Auth::instance()->get_user()->id
I have never seen Kohanu, but I found the answer to your question in a minute and in one search query.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question