-user name shows in the top right corner.
-fixed bug with development mode not being recognized by Zend.
This commit is contained in:
parent
2310c24f26
commit
dc6fcec0e3
6 changed files with 17 additions and 18 deletions
|
@ -4,15 +4,13 @@ class Airtime_View_Helper_LoggedInAs extends Zend_View_Helper_Abstract
|
|||
{
|
||||
public function loggedInAs ()
|
||||
{
|
||||
//$username = "test";
|
||||
/*
|
||||
$username = "";
|
||||
$auth = Zend_Auth::getInstance();
|
||||
|
||||
if ($auth->hasIdentity()) {
|
||||
$username = $auth->getIdentity()->username;
|
||||
$username = $auth->getIdentity()->login;
|
||||
}
|
||||
*/
|
||||
return "test";
|
||||
return $username;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue