sintonia/airtime_mvc/application/views/helpers/LoggedInAs.php
2015-01-05 16:41:03 -05:00

16 lines
321 B
PHP
Executable file

<?php
class Airtime_View_Helper_LoggedInAs extends Zend_View_Helper_Abstract
{
public function loggedInAs ()
{
$username = "";
$auth = Zend_Auth::getInstance();
if ($auth->hasIdentity()) {
$username = $auth->getIdentity()->login;
}
return $username;
}
}