How to get Currently logged user's ID in pyrocms?
Asked Answered
M

2

5

Now I have a project with pyrocms, I have a problem to get the current id user in module's controller, does anyone know how to get it?

Menace answered 20/2, 2012 at 13:10 Comment(1)
google.com/search?q=pyrocms%20user_id => pyrocms.com/forums/topics/view/629 => $this->user->id;Malignant
D
11

Use:

$this->current_user->id
Dais answered 5/6, 2012 at 16:49 Comment(0)
T
0

This returns null for me.
I know I'm logged in as on my template I'm echoing

{{ user:display_name }}

Just fine.

Oddness

Tableware answered 11/4, 2012 at 11:35 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.