[Catalyst] getting the ID of the user
Octavian Rasnita
orasnita at gmail.com
Sat Dec 30 08:40:42 GMT 2006
Hi,
I have tried to get the id of the currently logged user, using:
$c->user->id
But it returned same thing as
$c->user (the username and not its ID).
I have seen that if I use other fields like $c->user->email, they are got
correctly, so I think "id" might be a special field which is used by
Catalyst. But in that case, is it possible to get it, or I will need to make
another query to the database, for finding the ID of the current username?
Thank you.
Octavian
More information about the Catalyst
mailing list