public function getRealName() { $this->getIdentity(); $sm = ServiceLocatorFactory::getInstance(); $this->loginTable = $sm->get('Application\\Model\\LoginTable'); $real_name = $this->loginTable->getLogin($this->identity)->real_name; return $real_name; }