That's not possible anymore. We are currently investigating clean ways of implementing this use case. May I ask why you need the session in the table?
On Wednesday, July 23, 2014 11:53:48 AM UTC+2, Stefano Zoffoli wrote:
-- On Wednesday, July 23, 2014 11:53:48 AM UTC+2, Stefano Zoffoli wrote:
Hi,i'd like to read user auth infos in a Table Class (for example i want to log which user has saved a given entity in a AfterSave callback method).In cakephp 2 there was AuthComponent::user() static method, but in cakephp 3 that method is not static anymore, and I can't find a simple way to access that information outside of Controllers.How can i do that?Thank you
--
Stefano Zoffoli
Resp. Sviluppo Software
347 8180258
Librasoft Snc
www.LibrasoftSnc.it
www.ProgettoKuma.it
0543 424612![]()
![]()
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment