hasIdentity()) { $username = $auth->getIdentity()->username; $logoutUrl = $this->view->url(array( 'controller' => 'user', 'action' => 'logout' ), null, true); return 'Déconnexion : ' . $username . ''; } } }