【发布时间】:2015-11-13 17:53:09
【问题描述】:
$this->Auth->user ( 'username' );
在控制器中工作得很好,但我想检查是否有任何用户在 default.ctp 文件中使用
$this->Auth->user ();
我怎样才能做到这一点?
【问题讨论】:
-
最好在 App Controller 中签入,而不是 default.ctp。
标签: php variables session cakephp