Re: ACL How to get logged user information, like user name, id in user table, group name, etc.

2011-01-25 Thread raymond
Yeah. my mistake. The post I referred also was saying user(id). :D Thanks for your kind reply. 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

ACL How to get logged user information, like user name, id in user table, group name, etc.

2011-01-24 Thread raymond
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

Re: ACL How to get logged user information, like user name, id in user table, group name, etc.

2011-01-24 Thread alaxos
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 raymond...@gmail.com wrote: Hi, everyone. I ve entered CakePHP world recently and bumped into