> > 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).

> Hi Octavian,
> Assuming you are using DBIC, try:
>   $c->user->get_column('id')

Or, alternatively, you could use $c->user->obj->id (I think).

HTH,

--Tobias

_______________________________________________
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/

Reply via email to