如何在 cakephp 视图中查找用户名?
我使用cakephp 4.x和 当我使用// $ user = $ this-> user-> read(null,$ this- this-> auth->时用户身份 ')); // $ this-> set('用户',$ user); default.php ... :-( 有人知道吗?
我正在尝试将USERNA放在视图default.php上。我期待一些方向
I use CakePHP 4.x and
I'm getting messages like: "Call to a member function read() on null", when I used //$user = $this->User->read(null, $this->Auth->user('id '));
//$this->set('user', $user); instructions on the default.php... :-(
Does anyone know about this?
I'm trying put the userna on the view default.php. I'm expecting some orientations about
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论