Announcement

Collapse
No announcement yet.

How to Catch user id in session?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to Catch user id in session?

    I will make a special report to the logged-in user. But I can not catch the id of the logged in user in sql.

  • #2
    What about $this->getContainer()->get('user');

    Comment


    • #3
      How do I use it to get an id?
      Could you give me an example? like this

      $this->getContainer()->get('user')->id;

      Comment

      Working...
      X