[英]Amnah user extension in Yii2
I want to make a page to show information about the currently logged in user, but when i try to我想制作一个页面来显示有关当前登录用户的信息,但是当我尝试
echo Yii::$app->user->identity
it doesn't work because it can't convert the information to a string.它不起作用,因为它无法将信息转换为字符串。 Any thoughts on how I can do this?
关于如何做到这一点的任何想法?
Actually solved it by using实际上通过使用解决了它
Yii::$app->user->displayName
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.