If it is not a typo, the reason is that it is not $this->Auth-
>user["id] but $this->Auth->user("id).
user() is a function of the AuthComponent, not a property.

Regards,
nIcO

On Jan 24, 11:49 am, raymond <[email protected]> wrote:
> Hi, everyone.
> I ve entered CakePHP world recently and bumped into one issue.
> I need to get logged users information, especially primary key value
> in user table.
> I have tried $this->Auth->user["id] because I have read it from one
> post in this group, but I checked that $this->Auth does not have any
> user value there.
> So what solution will help me?
> Regards, Raymond.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to