简体   繁体   中英

how do i get the current logged in users in cakephp cakedc users

please, can some one tell me how to get the current logged in user in CAKEDC users plugin in cake php. i want to be able to use it at will within the application. just as wordpress' : loggedin_user(), get_current_user().

generally once a user goes through Auth in CakePHP, the way to get the user is $this->Auth->user(); Go ahead and try that in the controller ;).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM