小编5er*_*dev的帖子

zfcUser getState在另一个模块中

我怎么能从zfcUser获取getState

在view/index.phtml中,我从$ this-> zfcUserIdentity() - > getState();

但现在我需要获取此值(此用户登录的状态),在其他模块/控制器中(这是我的costum模块控制器)

所以我需要从状态:zfcUser/Entity/User到myModule/Controller

我看这个https://github.com/ZF-Commons/ZfcUser/wiki/How-to-check-if-the-user-is-logged-in但这个解决方案没有帮助

module zend-framework2 zfcuser

2
推荐指数
1
解决办法
2485
查看次数

标签 统计

module ×1

zend-framework2 ×1

zfcuser ×1