ZF2 Controller Plugin

后端 未结 2 1869
一整个雨季
一整个雨季 2021-01-15 02:40

I\'m new to ZF2 and am having some trouble with what should be a basic idea.

I\'m using the ZfCommons User module for authentication, it\'s been installed and is ope

2条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-15 03:35

    According to the docs, you can use the following

    $this->zfcUserAuthentication()->hasIdentity()
    
    $this->zfcUserAuthentication()->getIdentity()
    

提交回复
热议问题