Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function getIdentity()
- {
- if (null === $this->_identity) {
- $auth = Zend_Auth::getInstance();
- if (!$auth->hasIdentity()) {
- return 'guest';
- }
- $this->setIdentity($auth->getIdentity());
- }
- return $this->_identity;
- }
Add Comment
Please, Sign In to add comment