Guest User

Untitled

a guest
Jun 22nd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. public function getIdentity()
  2. {
  3. if (null === $this->_identity) {
  4. $auth = Zend_Auth::getInstance();
  5. if (!$auth->hasIdentity()) {
  6. return 'guest';
  7. }
  8. $this->setIdentity($auth->getIdentity());
  9. }
  10.  
  11. return $this->_identity;
  12. }
Add Comment
Please, Sign In to add comment